Add `gmu` (git merge upstream) alias
* Pull in `origin` & `upstream` and merge them into `upstream/master` from http://www.gitready.com/intermediate/2009/02/12/easily-fetching-upstream-changes.htmlpull/33/head
parent
6e7f423983
commit
760cc8be63
|
|
@ -23,6 +23,7 @@ alias gcp='git cherry-pick'
|
||||||
alias gco='git checkout'
|
alias gco='git checkout'
|
||||||
alias gexport='git archive --format zip --output'
|
alias gexport='git archive --format zip --output'
|
||||||
alias gdel='git branch -D'
|
alias gdel='git branch -D'
|
||||||
|
alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/master'
|
||||||
|
|
||||||
case $OSTYPE in
|
case $OSTYPE in
|
||||||
linux*)
|
linux*)
|
||||||
|
|
@ -61,7 +62,8 @@ function git-help() {
|
||||||
echo " gcp = git cherry-pick"
|
echo " gcp = git cherry-pick"
|
||||||
echo " gco = git checkout"
|
echo " gco = git checkout"
|
||||||
echo " gexport = git git archive --format zip --output"
|
echo " gexport = git git archive --format zip --output"
|
||||||
echo " gdel = git branch -D"
|
echo " gdel = git branch -D"
|
||||||
echo " gpo = git push origin"
|
echo " gpo = git push origin"
|
||||||
|
echo " gmu = git fetch origin -v; git fetch upstream -v; git merge upstream/master"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue