Skip to content

Instantly share code, notes, and snippets.

@keirwhitlock
Last active August 29, 2015 14:18
Show Gist options
  • Save keirwhitlock/b0f56ad9b36f2daa181e to your computer and use it in GitHub Desktop.
Save keirwhitlock/b0f56ad9b36f2daa181e to your computer and use it in GitHub Desktop.
Git alias for git log graph (~/.gitconfig)
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset)'
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)'
lg = !"git lg2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment