Note the -10
at the end, to show only the last 10 entries.
Use predefined git alias (hs
- short for history):
git hs
Created once by command:
git config --global alias.hs "log --pretty='%C(yellow)%h %C(cyan)%ad %Cblue%aN%C(auto)%d %Creset%s' --date=relative --date-order --graph"
%h
= abbreviated commit hash
%ad
= author date (format respects --date= option, so you can adjust it later)
%aN
= author name (respecting .mailmap)
%d
= ref names
%s
= subject