Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I force a manual merge in source control explorer TFS 2012?

I have a set of branches off of main. One branch was created after main was rolled back another was created before this. Now upon trying to merge the two branches Source control is automatically overwriting all changes. How can I force it to allow me to manual compare and merge changes?

like image 530
Bob Avatar asked Dec 16 '13 21:12

Bob


2 Answers

In Visual Studio go to Tools --> Options and uncheck "Attempt to automatically resolve conflicts when they are generated" marked in red in the image.

enter image description here

like image 172
Adarsh Shah Avatar answered Nov 02 '22 13:11

Adarsh Shah


I prefer using tf.exe for forcing a merge:

tf.exe merge $/project/main/myfile.cs $/project/branch1/myfile.cs /force /v:t

this will force a merge of the file to the newest workspace even if tfs thinks all changesets have been merged.

you can also do a recursive merge to merge a folder/project

tf.exe merge $/project/main/consoleapplication1/views/ $/project/branch1/consoleapplication1/views/ /r /force /v:t
like image 28
Snorre Avatar answered Nov 02 '22 14:11

Snorre