Last active
August 29, 2015 14:06
-
-
Save yusufnb/97850f4a36026c5114c1 to your computer and use it in GitHub Desktop.
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
| #http://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/ | |
| ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate | |
| ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat | |
| gr = grep -Ii | |
| la = "!git config -l | grep alias | cut -c 7-" | |
| assume = update-index --assume-unchanged | |
| unassume = update-index --no-assume-unchanged | |
| assumed = "!git ls-files -v | grep ^h | cut -c 3-" | |
| unassumeall = "!git assumed | xargs git update-index --no-assume-unchanged" | |
| assumeall = "!git st -s | awk {'print $2'} | xargs git assume" | |
| cp = cherry-pick | |
| st = status -s | |
| cl = clone | |
| ci = commit | |
| co = checkout | |
| br = branch | |
| diff = diff --word-diff | |
| dc = diff --cached | |
| r = reset | |
| r1 = reset HEAD^ | |
| r2 = reset HEAD^^ | |
| rh = reset --hard | |
| rh1 = reset HEAD^ --hard | |
| rh2 = reset HEAD^^ --hard | |
| sl = stash list | |
| sa = stash apply | |
| ss = stash save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment