Skip to content

Instantly share code, notes, and snippets.

@simonsmith
Last active December 24, 2015 09:49
Show Gist options
  • Select an option

  • Save simonsmith/6779382 to your computer and use it in GitHub Desktop.

Select an option

Save simonsmith/6779382 to your computer and use it in GitHub Desktop.
Awesome detailed git log.
git 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(white)%s%C(reset) %C(bold white)— %an%C(reset)' --abbrev-commit --all
Alias it to something like:
git config alias.graph = log --graph ..etc..
For a quick way to get an overview of your current branches etc, use a bash alias
alias gl='git graph -10'
Looks like: http://cl.ly/Ri9R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment