Skip to content

Instantly share code, notes, and snippets.

@mathiasverraes
Created January 10, 2013 20:39
Show Gist options
  • Save mathiasverraes/4505589 to your computer and use it in GitHub Desktop.
Save mathiasverraes/4505589 to your computer and use it in GitHub Desktop.
Bart's Pimping Git Log
[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
@mathiasverraes
Copy link
Author

Put this in your ~/.gitconfig

@mathiasverraes
Copy link
Author

Then type "git lg" in the command line

@clemherreman
Copy link

You may even use this:

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"

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