$ git log
$ git log --oneline
$ git log --oneline --graph
$ git log --oneline --decorate
$ git log --author="Travis Capener" --oneline
$ git log Trav-Cherry-Pick
$ git log --branches=Trav*
If you use the --branches= option, you must include some kind of wildcard or else Git assumes there is an implied /* wildcard at the end your search string. So
$ git log --branches=origin
is really
$ git log --branches=origin/*
Also, if you’re using GitBash, don’t forget to use Unix commands like
# Find all log entries containing "Intake"
$ git log --oneline | grep Intake | less
# Find the first 25 log entries
$ git log --oneline | head -n 25
# Find the first 30 log entries containing "Merge"
$ git log --oneline | grep Merge | head -n 30
Categories: Development, Git
Leave a comment