Skip to content

Instantly share code, notes, and snippets.

@pajtai
Created February 6, 2013 18:27
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 pajtai/4724660 to your computer and use it in GitHub Desktop.
Save pajtai/4724660 to your computer and use it in GitHub Desktop.
Git aliases
[alias]
lg1 = 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
lg2 = 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
logo = log --oneline
stat = log --stat
@pajtai
Copy link
Author

pajtai commented Feb 6, 2013

Graphs from this awesome Stackoverflow answer... modified to be able to add arguments as in, git lg1 --all, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment