Created
January 30, 2014 23:07
-
-
Save kimpepper/8722073 to your computer and use it in GitHub Desktop.
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
alias.ssave=stash save | |
alias.sshow=!f() { git stash show stash^{/$*} -p; }; f | |
alias.sapply=!f() { git stash apply stash^{/$*}; }; f | |
alias.assume=update-index --assume-unchanged | |
alias.unassume=update-index --no-assume-unchanged | |
alias.assumed=!git ls-files -v | grep ^h | cut -c 3- | |
alias.masterdiff=log --oneline --no-merges --reverse master ^HEAD | |
alias.staged=diff --staged | |
alias.amend=commit --amend | |
alias.graph=log --oneline --graph --color=auto | |
alias.who=shortlog -s -- | |
alias.st=status | |
alias.ci=commit -m | |
alias.ignored=ls-files -o -i --exclude-standard | |
alias.up=pull | |
alias.br=branch | |
alias.co=checkout | |
alias.df=diff | |
alias.lg=log -p | |
alias.pi=add -pi | |
alias.stg=diff --staged | |
alias.interdiff=!git diff > ~/patches/interdiff.txt | |
alias.interdiff-stg=!git diff --staged > ~/patches/interdiff.txt | |
alias.genpatch=!sh -c "br=`git symbolic-ref HEAD|sed s#refs/heads/##`; git diff origin/8.x > ~/patches/\${br}.$1.patch" | |
alias.rebase8x=!git fetch origin && git rebase origin/8.x | |
alias.merge8x=!git fetch origin && git merge origin/8.x | |
alias.fetch-patch=!sh -c "curl $1 | git apply" | |
alias.diffup=!git log --oneline --reverse @{u}... && git diff 8.x... > /home/rowlands/patches/$1.$2patch && git diff @{u} > /home/rowlands/patches/$1.interdiff.txt && echo | |
alias.com=!sh -c "br=`git symbolic-ref HEAD|sed s#refs/heads/##|cut -d\"-\" -f1`; git commit -em \"[#\${br}] $1\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment