Skip to content

Instantly share code, notes, and snippets.

@johanmeiring
Created June 27, 2012 08:32
Show Gist options
  • Save johanmeiring/3002458 to your computer and use it in GitHub Desktop.
Save johanmeiring/3002458 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 --"
@manf50
Copy link

manf50 commented Jul 11, 2025

thanks a lot. Putting it as an alias in ~/.bashrc is even more elegant. Could do the same for "git push" or "git pull" maybe ...?

@taprile314
Copy link

tipazo

@Amatikay
Copy link

Спасибо

@marounmelhem
Copy link

I just wanna let you know that I've been using this for more than 10 years

@imom0
Copy link

imom0 commented Oct 28, 2025

I just wanna let you know that I've been using this for more than 10 years

metoo

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