When merging our develop branch into my feature branch develop --> feature
in Visual Studio
, I get a merge conflict.
I have the possibility to choose from Take Source
and Keep Target
.
I want to take the file from the develop
branch. Which one is the correct option?
To see the beginning of the merge conflict in your file, search the file for the conflict marker <<<<<<< . When you open the file in your text editor, you'll see the changes from the HEAD or base branch after the line <<<<<<< HEAD .
On the command line, a simple "git merge --abort" will do this for you. In case you've made a mistake while resolving a conflict and realize this only after completing the merge, you can still easily undo it: just roll back to the commit before the merge happened with "git reset --hard " and start over again.
In this case, you should Take Source
. The "Source" is the develop
branch and the "Target" is the feature
branch.
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