git aliases

revision 3c3720875fa2f8299b27652f8e878f76e7aa44a5

raw

git.ini

1
2
3
4
5
6
7
8
9
10
11
alias.addnw=!sh -c 'git diff -w --no-color $@ | git apply --cached --ignore-whitespace' -
alias.br=branch
alias.cdiff=diff --cached
alias.co=checkout
alias.hooksetup=!cd "`git rev-parse --git-dir`/hooks" && ln -fs /usr/local/src/git-client-hooks/hooks/commit-msg && ln -fs /usr/local/src/git-client-hooks/hooks/pre-commit; cd -
alias.pp=!git pull && git push
alias.rmlock=!rm `git rev-parse --git-dir`/index.lock
alias.sl2=log --decorate=short --abbrev-commit --graph --pretty=oneline
alias.sl=log --graph --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
alias.st=status
 

History