Revoking TFS Merge Credits

孤人 提交于 2019-12-02 00:28:18

You're indeed better off undoing the merge for the specific files you don't want to merge right now, but once you've chosen keep target, TFS indeed remembers that choice.

If you're already past the point of committing the merge, there is a way to get rid of the ticket, and that is to roll back the merge. You can roll back the merge for a group of individual files.

The trick here is as follows:

  1. Look up each file and them in the Source Control Explorer.
  2. Right-click the individual file and from the context menu choose to Rollback....

  3. Enter the changeset number of the merge

  4. Repeat 1 to 3 until you have all the file in your list.
  5. Check-in this compensating changeset.
  6. Try merging Branch A to Branch B again, your candidate changes should show up again.

You can do the same thing from the commandline, using tf rollback (pre-2015) or tf vc rollback (post-20215)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!