git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Use case I don't know how to address

From
Alan Chandler <alan@chandlerfamily.org.uk>
Date
Sep 6, 2009, 12:50 UTC
Message-ID
<4AA3B01A.7060005@chandlerfamily.org.uk>
In-Reply-To
<200909051923.28831.j6t@kdbg.org>
Johannes Sixt wrote:
Show 31 quoted lines
> 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
> 

I understand what you are saying. I think I need to consider a slight change to it however. Master is currently the branch that I push to my public repository and that should ideally have my NON FAN CLUB skinning

So actually I think I am like this
          2' - 2a - 3' - 4' ------ 6' SITE
         /         /    /         /
  1 -  2  ------ 3  - 4  ------- 6  MASTER
                        \         \
                          5 - -- - 6'' PUBLIC REPO
                           \        \
                            5'''-5a -6''' DEMO
-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Previous: Johannes SixtNext: Junio C Hamano
Message 3 of 7 in “Use case I don't know how to address”
  1. Alan ChandlerSep 5, 2009
  2. Johannes SixtSep 5, 2009
  3. Alan ChandlerSep 6, 2009
  4. Junio C HamanoSep 6, 2009
  5. Alan ChandlerSep 6, 2009
  6. Alan ChandlerSep 7, 2009
  7. Alan ChandlerSep 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.