From: Johannes Sixt <j.sixt@viscovery.net>
To: Ilya Basin <basinilya@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: put THEIR commits AFTER my commits with a single rebase command
Date: Thu, 18 Apr 2013 13:03:10 +0200 [thread overview]
Message-ID: <516FD2EE.4040300@viscovery.net> (raw)
In-Reply-To: <1949082828.20130418123321@gmail.com>
Am 4/18/2013 10:33, schrieb Ilya Basin:
>
> JS> Perhaps this one:
>
> JS> git merge origin/master
> JS> git rebase ORIG_HEAD
>
> JS> -- Hannes
>
> Wouldn't I have to resolve conflicts twice?
Yes. But you did run 'git config rerere.enabled true' when you started
with git, didn't you? ;-)
Anyway, Johan's idea to use git cherry-pick is much better.
> 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/ ?
What do you expect here? Failure of git rebase means that it is not
complete, yet. So far, nothing has been rewritten. So what? Perhaps you mean:
# never mind
git rebase --abort
> else
> git branch -f master
> git checkout master
> fi
-- Hannes
prev parent reply other threads:[~2013-04-18 11:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 5:18 put THEIR commits AFTER my commits with a single rebase command Ilya Basin
2013-04-18 6:21 ` Johan Herland
2013-04-18 6:59 ` Re[2]: " Ilya Basin
2013-04-18 6:31 ` Johannes Sixt
2013-04-18 8:33 ` Re[2]: " Ilya Basin
2013-04-18 11:03 ` Johannes Sixt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=516FD2EE.4040300@viscovery.net \
--to=j.sixt@viscovery.net \
--cc=basinilya@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.