Created
June 17, 2014 13:26
-
-
Save hsuh/728ee9fd3370a06bbee2 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
Just type in: | |
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
Or create 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" | |
And every time you need to see your log, just type in | |
git lg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment