git aliases

raw

git.ini

1
2
3
4
5
6
7
8
9
10
11
12
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.rr=!git reset --hard @{u}
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
 
raw

setup.sh

1
git config --global alias.rr '!git reset --hard @{u}'
raw

z-links.rst

Christian Weiske Christian Weiske
owner

History