26.04.2015 Views

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

Team Development with Visual Studio Team Foundation Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

Tf merge /baseless c:\data\proj1 c:\data proj2 /recursive<br />

If you need to merge specific versions of the code changes, you can use the version<br />

switch <strong>with</strong> Tf.exe as follows:<br />

tf merge /baseless / recursive /version:~<br />

Example<br />

tf merge /baseless c:\data\proj1 c:\data\proj2 /recursive /version:C123~C125<br />

Step 3 – Resolve Merge Conflicts<br />

In this step, you resolve conflicts that might occur when performing a baseless merge.<br />

After you run the Tf.exe command, it displays a Resolve Conflicts dialog box <strong>with</strong> a list<br />

of the files that have conflicts.<br />

1. Select each file and click Resolve.<br />

2. In the Resolve version conflict dialog box:<br />

• If there are no content changes, select the Keep changes in the target branch<br />

resolution option and then click OK.<br />

• If there are content changes, select the Merge changes in merge tool resolution<br />

option, and then click OK.<br />

3. In the merge tool, click the conflict regions in the upper pane or type in the lower<br />

pane to apply changes for each conflicting line.<br />

4. After you have applied changes for all of the conflicts, click OK in the merge tool.<br />

5. After all the conflicts have been resolved, click Close.<br />

Step 4 – Check-in the Merged Changes<br />

In this step, you check-in the baseless merged changes<br />

1. Open Source Code Explorer.<br />

2. Right-click the target folder in which you have merged the changes and click Checkin<br />

pending changes.<br />

3. In the Check-In Source Files dialog box, ensure that all the files to be checked in are<br />

selected.<br />

4. Click Check In.<br />

Additional Resources<br />

• To learn how to merge files and folders, see “How to: Merge Files and Folders” at<br />

http://msdn2.microsoft.com/en-us/library/ms181428(VS.80).aspx<br />

• To learn more about baseless merge, see the /baseless option in “Merge Command” at<br />

http://msdn2.microsoft.com/en-us/library/bd6dxhfy(VS.80).aspx

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!