Created
June 27, 2012 08:32
-
-
Save johanmeiring/3002458 to your computer and use it in GitHub Desktop.
"git lg" alias for pretty 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
# From http://garmoncheg.blogspot.com/2012/06/pretty-git-log.html | |
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 --" |
nice men
graciela mostro
Thank you!
good
You might also want to:
- Remove "forced"
--color
(e.g. piping) tformat
instead offormat
(tl;dr: newline at the end of the command)
git config --global alias.lg "log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate=full"
You can also change -%C(yellow)%d%Creset
to -%C(auto)%d%Creset
if you want your branches to be different colors
Thanks
muchas gracias crack!
un capo total
nice, thank you
You can also change
-%C(yellow)%d%Creset
to-%C(auto)%d%Creset
if you want your branches to be different colors
for posterity:
git config --global alias.lg "log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --decorate=full"
gracias de nuevo capo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
que bien