Skip to content

Instantly share code, notes, and snippets.

@n3dst4
Created June 18, 2013 14:08
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 n3dst4/5805643 to your computer and use it in GitHub Desktop.
Save n3dst4/5805643 to your computer and use it in GitHub Desktop.
A very useful git alias, "git pretty" prints a coloured, branched diagram of your repository. Obviously there are graphical tools which will do this but if you're working from the command line it's handy not to have to fire up a whole new window. Run the command line below to add the alias to your global ".gitconfig". I also have the same comman…
git config --global --add alias.pretty "log --oneline --abbrev-commit --branches=* --graph --decorate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment