git log
Jump to navigation
Jump to search
git loggit log -1git log -p# patchgit log --allgit log --onelinegit log --oneline --pretty='%h %ad %cn %s' --date=shortgit log --oneline --pretty='%h %ad %s' --date=short- Author:
git log --format="%h %ad %an %ae %s" --date=short
git log -p -- filenamegit log --pretty=format:"%h - %an, %ar on %cd: %s"- Show modifications to a file:
git log --follow -p FILE_TO_SHOW[1] orgit blame FILE_TO_SHOW git shortlog- List developers:
git shortlogs -sne[2] git log --tags --simplify-by-decoration --pretty="format:%ci %d"git log -p --all -Sgit log origin/yourBranchName..HEAD
Latest commit on main
- git log -1 --format="%cd" refs/remotes/origin/main
git log -1 --format="%cd" HEAD
git log --pretty=fuller
Related commands[edit]
git show 3c88ad72430- git --no-pager
- git status
- gh pr list --state merged
ls -d */ | xargs -I {} git -C {} fetch --all
See also[edit]
Advertising: