Created
February 13, 2014 02:24
-
-
Save usk81/8968623 to your computer and use it in GitHub Desktop.
my git alias
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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