Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Team Explorer merge conflicts

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?

enter image description here

like image 520
xeraphim Avatar asked Nov 28 '17 09:11

xeraphim


People also ask

How do I see merge conflicts?

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 .

How do I get rid of merge conflicts?

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.


1 Answers

In this case, you should Take Source. The "Source" is the develop branch and the "Target" is the feature branch.

like image 84
Edmund Dipple Avatar answered Oct 01 '22 03:10

Edmund Dipple