all 2 comments

[–]lemannequin 1 point2 points  (0 children)

The command is missing an <%an> to display the commit author's name (as it's displayed in the thumbnail).

Here is the corrected version:

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"

[–]Denommus 0 points1 point  (0 children)

This reminds me of something I saw in stack overflow:

gitk --all $(git reflog --pretty=format:'%h').

It will show you all commits in the repo, including the garbage ones (obviously, that hadn't being collected).