Skip to content

Instantly share code, notes, and snippets.

@jottr
Last active December 18, 2015 05:19
Show Gist options
  • Save jottr/5732364 to your computer and use it in GitHub Desktop.
Save jottr/5732364 to your computer and use it in GitHub Desktop.

Colored log output

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"

And every time you need to see your log, just type in

git lg

Or, if you want to see the lines that changed

git lg -p

Autocorrect

git config --global help.autocorrect 1

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