Merging is the process of combining the changes in two distinct branches. A merge operation takes changes that have occurred in the source branch and integrates them into the target branch. Merging integrates all types of changes in the source branch including name changes, file edits, file additions, and file delete and undelete changes. If items have been modified in both the source and target branches, you will be prompted to resolve conflicts.
Merging can be conducted through Source Control Explorer, or from the command line using the Merge Command.
During a merge operation, the following actions occur:
Note A namespace collision can occur if the item being added from the source branch shares an identical name with an item that has been added to the target branch. Team Foundation does not handle the resolution of this type of conflict; however, an error message is logged.
Note During a merge operation, you have the choice of merging either specific versions of items, or all changes.
Merge operations can be performed from either the Source Control Explorer or the command line using the Merge Command.
The Team Foundation source control server keeps a historical record of all merges that have occurred. You can review this information from the command line using the Merges Command.