Last active
August 22, 2019 06:41
-
-
Save xhlwill/b8cb0733c82e5806ffefa2ea3ef3c005 to your computer and use it in GitHub Desktop.
pretty git log output https://ruby-china.org/topics/939
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
# pretty git log history | |
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %an' | |
# add it to alias | |
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %an'" | |
# now we can use <git-lg> | |
git lg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment