Created
September 22, 2010 00:49
-
-
Save geelen/590895 to your computer and use it in GitHub Desktop.
This file contains 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
function git_current_branch() { | |
git symbolic-ref HEAD 2> /dev/null | sed -e 's/refs\/heads\///' | |
} | |
alias gpthis='git push origin HEAD:$(git_current_branch)' | |
alias grb='git rebase -p' | |
alias gup='git fetch origin && grb origin/$(git_current_branch)' | |
alias gm='git merge --no-ff' |
This file contains 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
function git_parse_branch | |
sh -c 'git symbolic-ref HEAD 2> /dev/null' | sed -e 's/refs\/heads\///' | |
end |
This file contains 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
function gm | |
git merge --no-ff $argv; | |
end |
This file contains 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
function gpthis | |
git push origin HEAD:(git_parse_branch) $argv | |
end |
This file contains 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
function gup | |
git fetch origin; and git rebase -p origin/(git_parse_branch) $argv; | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment