Skip to content

Instantly share code, notes, and snippets.

@Muyangmin
Last active May 27, 2016 01:36
Show Gist options
  • Save Muyangmin/cd60fa3fb9d46da9209be28c9c103e90 to your computer and use it in GitHub Desktop.
Save Muyangmin/cd60fa3fb9d46da9209be28c9c103e90 to your computer and use it in GitHub Desktop.
Git log alias
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"

Now just executegit lg, it looks like this :

Enjoy it!

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