From: Johannes Sixt <j6t@kdbg.org>
To: Alan Chandler <alan@chandlerfamily.org.uk>
Cc: git@vger.kernel.org
Subject: Re: Use case I don't know how to address
Date: Sat, 5 Sep 2009 19:23:28 +0200 [thread overview]
Message-ID: <200909051923.28831.j6t@kdbg.org> (raw)
In-Reply-To: <4AA20CEC.8060408@chandlerfamily.org.uk>
On Samstag, 5. September 2009, Alan Chandler wrote:
> The problem comes when I want to now merge back further work that I did
> on the master branch (the 5-6 transition) to the fan club site
>
>
> 2' - 2a - 3' - 4' ----------------- 6' SITE
> / / / /
> 1 - 2 ------ 3 - 4 ------------6'''- 6a TEST
> \ /
> 5 ------ 6 MASTER
> \ \
> 5''- 5a- 6'' DEMO
>
>
> What will happen is the changes made in 4->5 will get applied to the
> (now) Test branch as part of the 6->6'' merge, and I will be left having
> to add a new commit, 6a, to undo them all again. Given this is likely
> to be quite a substantial change I want to try and avoid it if possible.
>
> Is there any way I could use git to remember the 4->5 transition,
> reverse it and apply it back to the Test branch before hand.
Basically, your mistake was to rename master to test and continue development
on the demo branch. So what you should do instead is this:
2' - 2a - 3' - 4' ------ 6' SITE
/ / / /
1 - 2 ------ 3 - 4 ------- 6 MASTER
\ \
5 - 5a - 6'' DEMO
IOW, you keep developing on master, and merge that into the two deployment
branches.
In practice, it may be easier to develop commit 6 on DEMO (because you can
debug it more easily, or for similar reasons), but then you should rebase it
back to MASTER, reset DEMO back to 5a, and finally merge MASTER into DEMO.
-- Hannes
next prev parent reply other threads:[~2009-09-05 17:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-05 7:02 Use case I don't know how to address Alan Chandler
2009-09-05 17:23 ` Johannes Sixt [this message]
2009-09-06 12:50 ` Alan Chandler
2009-09-06 8:03 ` Junio C Hamano
2009-09-06 12:44 ` Alan Chandler
2009-09-07 12:01 ` Alan Chandler
2009-09-07 12:08 ` Alan Chandler
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=200909051923.28831.j6t@kdbg.org \
--to=j6t@kdbg.org \
--cc=alan@chandlerfamily.org.uk \
--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).