From: Jay Soffian <jaysoffian@gmail.com>
To: git <git@vger.kernel.org>
Subject: Help: approach for rebasing to older commits after merging more recent commits
Date: Mon, 14 Dec 2009 15:38:32 -0500 [thread overview]
Message-ID: <76718490912141238k4ca1ba55jeff928efe875f020@mail.gmail.com> (raw)
In-Reply-To: <76718490912091204u3a4596fdi504005624d5a5bce@mail.gmail.com>
[He asks again...]
I have an interesting problem I'm not sure how best to tackle.
A small development team is basing its product on an upstream git repo that is
itself an svn clone. Currently the process looks like this:
r1--r2--r3--r4--r5 upstream trunk (git svn clone)
\ \ \
A---B---C---D---E local trunk (git clone of upstream)
\ /
F---G developerN trunk (git clones of local)
So local trunk has both daily merges from the local developers, as well as
less periodic (typically weekly) merges from upstream trunk. The reason being
that it is necessary to remain on top of the upstream bleeding edge.
This works out okay, but there is a minor problem and a major problem.
The minor problem is that the local trunk is cluttered with the developerN
merges. That is easy to solve by having local developers rebase before pushing
to local trunk. That would look like:
r1--r2--r3--r4--r5 upstream trunk
\ \ \
A---B---C---D---E---F'---G' local trunk
The major problem is that local trunk is also cluttered with merges from
upstream. The is a problem because at some point in the future, upstream
is going to declare some rN as being officially blessed. And we're going to
want to rewind any rN changes past that point.
So the question is, what's the best way to do this? Say r2 is blessed by
upstream. The obvious thing to do (I think...) is:
(local-trunk)$ git rebase -i r2
removing C and E from the pick list.
But, occassionally the merges from upstream require much conflict resolution.
Would enabling rerere during merges help with the rebasing? I would want to
reuse as much conflict resolution as possible.
Is there a better approach altogether? Should we be doing something other
than merging to stay atop upstream?
Suggestions/comments greatly appreciated.
j.
next prev parent reply other threads:[~2009-12-14 20:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-09 20:04 Help: approach for rebasing to older commits after merging more recent commits Jay Soffian
2009-12-14 20:38 ` Jay Soffian [this message]
2009-12-14 21:33 ` Junio C Hamano
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=76718490912141238k4ca1ba55jeff928efe875f020@mail.gmail.com \
--to=jaysoffian@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