Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jiglesiasabio/fe097eed8ac5f14c66c0e0d54d437f60 to your computer and use it in GitHub Desktop.
Save jiglesiasabio/fe097eed8ac5f14c66c0e0d54d437f60 to your computer and use it in GitHub Desktop.
"git lg" alias for pretty git log
# 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 --"
@jiglesiasabio
Copy link
Author

see also: https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases

$ git config --global alias.co checkout
$ git config --global alias.br branch
$ git config --global alias.ci commit
$ git config --global alias.st status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment