public
Created

Git aliases

  • Download Gist
gistfile1.txt
1 2 3 4
# add to your ~/.gitconfig
 
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative

It's easier to not edit the config directly, IMO. Use:
git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"

Mine are at http://bit.ly/gitconfigsetup

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.