Skip to content

Instantly share code, notes, and snippets.

@canton7
Created November 4, 2011 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save canton7/1339179 to your computer and use it in GitHub Desktop.
Save canton7/1339179 to your computer and use it in GitHub Desktop.
Useful git aliases

Useful git aliases

Command-line graphical log viewer

This is invaluable if you've managed to get yourself in a muddle.

git config --global alias.graph git log --graph --oneline --decorate --all

Pretty reflog viewer

Thanks for FauxFaux for this one. Shows the reflog in gitk.

git config --global alias.refk '!gitk --all $(git log -g --format="%h" -50)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment