Skip to content

Instantly share code, notes, and snippets.

@niothiel
Created April 6, 2015 15:12
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 niothiel/f0b4c227f0d3d43a5681 to your computer and use it in GitHub Desktop.
Save niothiel/f0b4c227f0d3d43a5681 to your computer and use it in GitHub Desktop.
Add the following lines to ~/.gitconfig. It will give you the "git g" alias, allowing you to see a nice graphical view of what is happening in your repository.
[alias]
g = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(reset)%C(bold yellow)%d%C(reset) %C(white)%s%C(reset) %C(dim white)- %an' --all
l = log --graph --abbrev-commit --decorate --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment