Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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