|
|
@ -45,15 +45,14 @@ alias gst="git status" |
|
|
|
function gupf { |
|
|
|
function gupf { |
|
|
|
( |
|
|
|
( |
|
|
|
set -e |
|
|
|
set -e |
|
|
|
local ORIGIN=${1-origin} |
|
|
|
|
|
|
|
local UPSTREAM=${2-upstream} |
|
|
|
|
|
|
|
local LBRANCH=`git symbolic-ref --short HEAD` |
|
|
|
local LBRANCH=`git symbolic-ref --short HEAD` |
|
|
|
|
|
|
|
local ORIGIN=${1-`git config --get branch.$LBRANCH.remote`} |
|
|
|
|
|
|
|
local UPSTREAM=${2-upstream} |
|
|
|
local OBRANCH=${3-$LBRANCH} |
|
|
|
local OBRANCH=${3-$LBRANCH} |
|
|
|
local UBRANCH=${4-$OBRANCH} |
|
|
|
local UBRANCH=${4-$OBRANCH} |
|
|
|
git fetch $ORIGIN |
|
|
|
git fetch $ORIGIN |
|
|
|
git fetch $UPSTREAM |
|
|
|
git fetch $UPSTREAM |
|
|
|
git checkout $ORIGIN/$OBRANCH |
|
|
|
git checkout -b merge $ORIGIN/$OBRANCH |
|
|
|
git checkout -b merge |
|
|
|
|
|
|
|
git merge $UPSTREAM/$UBRANCH -m "merge upstream from `git ls-remote --get-url $UPSTREAM`" |
|
|
|
git merge $UPSTREAM/$UBRANCH -m "merge upstream from `git ls-remote --get-url $UPSTREAM`" |
|
|
|
git checkout $LBRANCH |
|
|
|
git checkout $LBRANCH |
|
|
|
git rebase merge |
|
|
|
git rebase merge |
|
|
@ -125,6 +124,17 @@ function clearbuf { |
|
|
|
# |
|
|
|
# |
|
|
|
alias lns="ln -sr" |
|
|
|
alias lns="ln -sr" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# Please |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
function please { |
|
|
|
|
|
|
|
if [ -z "$*" ]; then |
|
|
|
|
|
|
|
sudo $(fc -ln -1) |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
sudo "$@" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# |
|
|
|
# |
|
|
|
# Local overrides |
|
|
|
# Local overrides |
|
|
|