Skip to content

Instantly share code, notes, and snippets.

@ehedaya
Created October 29, 2012 16:55
Show Gist options
  • Save ehedaya/3974870 to your computer and use it in GitHub Desktop.
Save ehedaya/3974870 to your computer and use it in GitHub Desktop.
Handy git aliases (sayForExample)
[alias]
lg = log --graph --all --format=format:'%C(bold red)%h%C(reset) - %C(bold green)%ad%C(reset) %C(white)%s%C(reset) %C(bold white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --abbrev-commit --date=short
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
@ehedaya
Copy link
Author

ehedaya commented May 21, 2015

git congif --global --edit ... then paste the above

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