I have the following Git history:
D-E-A-B-C-A-B-C (feature2)
/
*-D-E (feature1)
/
*-F (develop)
I have no idea how A, B and C ended up on feature2 twice. I have been rebasing feature2 on and off of feature1 using git rebase feature1
and git rebase --onto develop feature1
. I've rectified the situation by cherry-picking A, B and C on to a fresh branch off develop, but: how could this have come about? I'm stumped.
Edit
I have no idea what Github is doing here, but now Git is saying:
Your branch and 'origin/feature2-fresh' have diverged,
and have 113 and 100 different commit(s) each, respectively.
So it seems it's Github's fault?