From: Henning Moll <newsScott@gmx.de>
To: git <git@vger.kernel.org>
Cc: Christian Couder <christian.couder@gmail.com>
Subject: Re: flatten-merge history
Date: Mon, 27 Oct 2014 00:45:17 +0100 [thread overview]
Message-ID: <544D878D.6020809@gmx.de> (raw)
In-Reply-To: <CAP8UFD2yjXC6ffCQyTvYNZZ00Ou=YmNgyWxGhbO29nbTHXRD5w@mail.gmail.com>
Am 26.10.2014 um 20:02 schrieb Christian Couder:
> Yeah. Henning, when interactively rebasing, in our editor, you should
> have something like: pick A pick P pick B pick Q pick C pick D pick R
> pick E which should work without any conflict. And then you can rebase
> the b1 and b2 branches on the resulting branch.
Thank you all very much. It worked!
I didn't know that i could also introduce new commits in the interactive
rebase list. Just for the record, in case others need to do such a task:
intial situation:
P - - - Q - - - - - R <-extern
A - - - B - - - C - D - - - E <-master
\ \
M ... \ <-b1
\
W ... <-b2
On master:
$ git rebase -i --root
(editor opens showing
pick A
pick B
pick C
pick D
pick E
modify this to
pick A
pick P
pick B
pick Q
pick C
pick D
pick R
pick E
save, quit. Now, master is already fixed. Now fix the branches:
$ git rebase --onto B' B b1
$ git rebase --onto D' D b2
Just a final question: Is it possible to keep the GIT_COMMITTER_DATE in
all those rebases?
Thanks again
Henning
next prev parent reply other threads:[~2014-10-26 23:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-25 12:31 flatten-merge history Henning Moll
2014-10-26 5:46 ` Christian Couder
2014-10-26 14:36 ` Henning Moll
2014-10-26 15:19 ` Andreas Schwab
2014-10-26 19:02 ` Christian Couder
2014-10-26 23:45 ` Henning Moll [this message]
2014-10-27 18:45 ` Andreas Schwab
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=544D878D.6020809@gmx.de \
--to=newsscott@gmx.de \
--cc=christian.couder@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).