Created
June 28, 2018 17:38
-
-
Save c18s/7e9e5af741811e057e507e60af25f66a to your computer and use it in GitHub Desktop.
A better git log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make an alias | |
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" | |
# run | |
git lg | |
git lg -p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference
https://coderwall.com/p/euwpig/a-better-git-log