Skip to content

Instantly share code, notes, and snippets.

@jbaiera
Last active May 4, 2016 17:40
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbaiera/5444020 to your computer and use it in GitHub Desktop.
Save jbaiera/5444020 to your computer and use it in GitHub Desktop.
Git Graph - Pretty Print Log format for Git
[alias]
graph1 = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(bold white)— %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=relative --color --date-order
graph2 = log --graph --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(bold white)— %an%C(reset)%n%w(70,12,10)%C(white)%s%C(reset)%n' --abbrev-commit --color --date-order
graph = !"git graph1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment