Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I assume that you will be, or have, set up an <code>origin</code> remote to your fork, and the same again for <code>upstream</code> (as described).</p> <p>I would then do a fetch of the <code>upstream</code> so that you have all their branches held locally. You can then make the comparisons between the repos and see if there is a common commit at or near the divergence date.</p> <p>The <code>gitk --all</code> visualisation is useful here. Don't forget that even if you do a rebase the old commit series is still there so you can give it a name</p> <hr> <p>[EDIT] A wordy description.</p> <p>Clearly the merge commit is 'getting in the way' so needs to be massaged <em>away</em> so that the repos can be brought in sync again.</p> <ol> <li>create a <code>temp</code> branch at your current head, so nothing gets lost.</li> <li><code>reset</code> your master branch back to the last common commit between you and upstream.</li> <li><code>reset</code> your feature branch to just before the merge.</li> <li><code>checkout</code> that merge commit to get the working tree as you expect, then</li> <li>switch to your feature branch (without checking out anything!)</li> <li><code>commit</code> that fixed work tree on your <code>feature</code> branch (i.e. no merge).</li> </ol> <p>You now have a clean line on <code>master</code>, a clean but old line on <code>feature</code>, and any post merge developments on <code>temp</code>. if Happy, you should be able to force push this to your <code>origin</code>.</p> <ol> <li><code>pull</code> from upstream - it (i.e. <code>master</code>, etc.) should all fast forward.</li> <li><code>rebase</code> those post merge developments from <code>temp</code> onto <code>feature</code> (if required).</li> <li><code>rebase</code> <code>feature</code> to the last commit you know well on master (should be relatively easy).</li> <li><code>rebase</code> <code>feature</code> (again) to the latest commit on master, fixing up as you go (combine with the last step if it's easy;-).</li> </ol> <p>This should finally give you a clean line of feature development at the head of master, and suitable for pulling upstream without any conflict.</p>
    singulars
    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.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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