I did the whole thing in VSCode version control.
I have two branches, a main and b1 branch. b1 branch came from main branch. After doing some commits on b1, I merged it back into main, but main already got some conflicting commits with that merge. I resolved the conflicts then finished the merge.
I did an undo commit after that. VSCode allows me to then do more changes then press commit again, finishing the merge. This created a simple commit, not the desired merge commit in main branch.
The problem is that many commits happened since then. I want to make this commit be a merge commit.
How could I solve this problem?
An example of the problem is here: https://github.com/KijeviGombooc/merge_test






You need to play hardball every once in a while:
And now you can force-push into the remote with the new shiny
masterbranch.