Re:GitHub Flow Like a Pro with These 13 Git Aliases
by contingencies on Monday March 23, 2015 @06:44AM
(#9250219)
This is useful, but try...
git log --all --graph --pretty=format:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
... you get visual branching and merging, branch names, useful dates, authors, etc.
summary = !git log $(git log -1 --merges --pretty=format:%H)..HEAD --oneline
This prints the log summaries on one line up to the last merge commit. If you are working on a feature/topic branch (and you collaborators do too), this will just print out the commits you have add for the feature. I often use this to go back and rebase fixups or suggestions from a code review.