How to Branch

- J.D. Meier, Jason Taylor, Alex Mackman, Prashant Bansode

To create a branch, either use Source Control Explorer or use the tf branch command from the command line.

To branch from Source Control Explorer, right-click the top-level folder containing your project source, click Branch, and then specify a target folder location with a folder name to indicate the purpose of the branch; for example, MyProjectRelease1.0Branch.

To branch from the command line, use the tf branch command from a Visual Studio 2005 Command Prompt; for example:

tf branch C:\MyProject $/MyProject_Release1.0_Branch

Use branches only when you need to provide isolation while you do parallel development. When using branches you will have to eventually merge the changes to the main branch and as merging incurs overhead and requires you to manage conflicts, do not branch unless you need the file isolation that branching provides. You can label a build and branch later if needed.

Additional Resources

Last edited Jul 31, 2007 at 1:29 PM by prashantbansode, version 10

Comments

No comments yet.