How to branch and merge in TFS

后端 未结 2 850
無奈伤痛
無奈伤痛 2020-12-13 13:59

This question is a derivative of a previous question: How to version resources that are shared across projects

I have a project that contains code that is consumed

相关标签:
2条回答
  • 2020-12-13 14:45

    The TFS merge engine relies almost entirely on history, not file contents. This makes it efficient for very large trees, and flexible for tasks like safely cherry-picking changes -- but it also makes answering your question difficult.

    The first step is to understand the diagnostic commands tf history, tf merges, and tf merge /candidate. Here is a good introduction: http://blogs.msdn.com/dstfs/archive/2009/04/15/a-note-on-merging-and-the-use-of-tf-merges-tf-merge.aspx

    If you are new to branching & merging in TFS then your history is probably not very complex. I think it's likely you'll find your answer with one quick call to tf merges. However, tracing merge history can become extremely convoluted in the general case, so if you have trouble feel free to post back with more details.

    0 讨论(0)
  • 2020-12-13 14:48

    Go to one specific file you know has changed in your "parent" project. Try merging just that file. Don't check anything in; just see what happens.

    Something to watch for: The merge tools will not include files that have been added after you branch. You have to branch new files explicitly before you can merge any further changes. If a file is added to both parent and child folders without using a branch operation, the merge tools don't treat them as versions of the same file (and you can't merge changes between them).

    0 讨论(0)
提交回复
热议问题