I have a history like this:
A - B - M
\ /
C
A, B and M are master, C is on a feature branch.
I made two mistakes:
- I didn't realize that the company remote doesn't accept merge commits before I made it.
- I changed a lot of things in the Merge commit apart from simply resolving the conflict.
I wanted to rebase, so it would look like A - B - C - M, C - M probably squashed together.
I only found one question on the internet which actually looked quite similar to my case, the only response was "merge is fine".
I admit I'm still not 100% familiar with the rebase syntax, but any combination I told git to rebase, with or without -p
and/or -i
, it either said there is nothing to rebase (noop) or said it's not working.
What seemed to be the logical choice is to step on C and rebase -ip master
, but it didn't quite do what I expected it would.