Skip to content

Instantly share code, notes, and snippets.

@usk81
Created February 13, 2014 02:24
Show Gist options
  • Save usk81/8968623 to your computer and use it in GitHub Desktop.
Save usk81/8968623 to your computer and use it in GitHub Desktop.
my git alias
[core]
autocrlf = input
[alias]
diff = diff --color
last = log -1 HEAD
lg1=log --graph --all --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 --all --format=format:'%C(bold blue)%h%C(reset)- %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(boldyellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(bold white)—%an%C(reset)' --abbrev-commit
lg=!git lg1
master = checkout master
tag-show = for-each-ref --sort=-taggerdate --format='[%(taggerdate:short)] %(tag) %(taggername) %(subject)' refs/tags
cpush = !git push origin `git rev-parse --abbrev-ref HEAD`
today = log --since=midnight --author='(Your name)' --oneline --reverse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment