I've run into some strange behavior with git and I was wondering if anyone has any experience with it. I have two branches, stable and master, that I have merged after resolving conflicts. Unfortunately, the master branch (which should now reflect all of the changes in stable) will not compile due to the insertion of markup by git. It looks something like this:
>>>>>>> stable
=======
Duplicate code will usually appear between the markups, presumably to differentiate between code in the different branches.
Ideas? Thoughts? Doinitwrong?
Correct, that mangling is git's way of showing you what the conflicts are. They are called 'conflict markers'. When resolving conflicts you need to remove those extra characters as you go along and pick the correct side to keep (old vs new code).
Once you have resolved all the conflicts and removed the extra characters/lines then add and commit those changes to finish the merging of the branches.
Here is tutorial about basic branching and merging and another right from the git manual on resolving conflicts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With