Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do you easily unmerge a topic branch in Subversion/git?
    primarykey
    data
    text
    <p>So I have <code>/trunk</code>, to which all things golden are eventually committed. And I have a topic branch, <code>/topicA</code>.</p> <p>Normally, you would merge <code>/topicA</code> into trunk and it would be one commit. Hooray! To undo this merge, you just have to reverse merge the commit caused by this merge. Easy peasy.</p> <p>Now, let's say I have <code>/topicA</code> and I merge it into <code>/trunk</code>... But then I have a bugfix that relates to <code>/topicA</code>. So, should I be committing to <code>/topicA</code> again? I can even remerge <code>/topicA</code> so that <code>/trunk</code> contains <code>/topicA</code>. But how to I rollback all of <code>/topicA</code>, original work AND bugfixes, easily?</p> <p>Commit history:</p> <ul> <li>Commit to <code>/topicA</code></li> <li>Commit to <code>/topicA</code></li> <li>Commit to <code>/topicA</code></li> <li>...</li> <li>Merge <code>/topicA</code> into <code>/trunk</code></li> <li>...</li> <li>Bugfix1 to <code>/topicA</code></li> <li>Remerge <code>/topicA</code> into <code>/trunk</code> for bugfixes</li> <li>...</li> <li>Bugfix2 to <code>/topicA</code></li> <li>Bugfix3 to <code>/topicA</code></li> <li>Remerge <code>/topicA</code> into <code>/trunk</code> for bugfixes</li> <li>...</li> <li>??? (unmerge <code>/topicA</code>, bugfixes included)</li> </ul> <p>I know you can just unmerge each bugfix and then the initial merge, but that doesn't seem sexy at all.</p> <p>Does git have an answer to this as well?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload