I was surprised to see that some developers are still unaware of the merge feature that is built in to TFS. I’ve seen developers manually check-out and edit items instead of using the merge feature. Here are the steps on how to do a merge in TFS. Some items are blurred out to not disclose any sensitive information.

1. From the source control explorer, navigate to the branched project and right click the folder on where the changes are located. Select “Branching and Merging” -> “Merge”.

merge1

2. Verify source and target branches are correct. Make sure to choose “Selected changesets”.

merge2

3. Select the changeset(s) that you wish to merge.

merge3

4. Click finish on the next dialog. A couple of steps are needed after you click finish as stated on the dialog.

merge4

5. Open team explorer and navigate to pending changes. Verify that the checked out files are correct and labeled as “[merge, edit]”. Enter your comments and check in your changes.

merge5

You are done!

Like this post? Share it!