Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
git tree - a shorthand alias for a pretty cli git log graph
# Place this in your home directory's ~/.gitconfig file
[alias]
# a shorthand alias for a pretty cli git log graph
tree = "!git log --graph --decorate --pretty=format:'%C(yellow)%h %Cred%cr %Cblue(%an)%C(cyan)%d%Creset %s' --abbrev-commit --all"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment