Re[2]: put THEIR commits AFTER my commits with a single rebase command

2013-04-18 Thread Ilya Basin
JH git cherry-pick master..origin/master

Thanks Johan.

--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re[2]: put THEIR commits AFTER my commits with a single rebase command

2013-04-18 Thread Ilya Basin

JS Perhaps this one:

JSgit merge origin/master
JSgit rebase ORIG_HEAD

JS -- Hannes

Wouldn't I have to resolve conflicts twice?


BTW, during the rebase, can I tell git to rewrite a different branch
upon rebase success or abort?

git branch -f tmp origin/master
git rebase --onto master master tmp
if [ $? -ne 0 ]; then
   # modify some file in .git/ ?
else
git branch -f master
git checkout master
fi



-- 

--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html