I want to re-create a merge conflict so I can resolve it correctly the second time round.
Example:
- Branch 'A' checked out.
- Branch 'B' is merged In.
- Conflicts resolved from merge (creates merge commit).
- Push to remote.
- Other people merge into Branch 'A' and push to remote.
- Oh dear I have realised my conflict resolution was wrong, I went with theirs instead of mine, whatever.
- Now what?
I essentially want to re-do the conflict resolution part.
I don't have the option of re-setting my HEAD as the branch has already been pushed to the remote; and has the possibility of other people having committed on it, before I had realised the conflict resolution was wrong.
I also want to avoid making a direct fix on branch 'A'.
I want to avoid cherry picking. I know I can do a standard revert and cherry pick my commits etc, I don't want to do this.
So is there any graceful way of doing this?
I have tried reverting the merge commit then reverting the revert and merging branch 'B' back in again, but unfortunately it does not ask me to resolve any conflicts the second time round, I just get the standard 'Already up to date' message.
Putting it simply, I want to re-create my conflict so I can resolve it correctly the second time round.
Any help will be much appreciated.
Thanks.