The easy option:
git log --graph --decorate --oneline
-
--graphdraws a graph indicating commits (implies --topo-order) -
--decorateshows any ref names (tags and branches) -
--onelineshows the start of the commit sha and the commit title
The more complicated option:
git log --graph --pretty=format:'%C(cyan)%an (%cr) %C(yellow)%h%Cred%d%Creset %s'
It's much like the easy option, but with author and time-since-commit
You might also want to mix these in sometimes:
-
--allshows all commits (across other branches) -
--author-date-orderorders by date of commit, which mixes in commits from different branches -
--patchshows changes between commits as a patch
Posted by adre to Foxsoft (2017-05-25 14:37)