2

我目前正在使用 TFS 2010 进行源代码控制,但我遇到了一些奇怪的问题。

发生的情况是,开发人员 1 签出一些文件,进行一些修改,然后将它们签入。然后,当开发人员 2 在源代码管理中对这些文件执行“获取最新”时,它将打开“解决冲突”选项卡和开发人员的每个文件1 修改将在那里,冲突类型:“现有文件”和描述:“本地存在同名文件”。我还应该提到,Developer 2 没有签出文件,所以我假设不会发生冲突,它只会在所有文件上获得最新的。

每次有人做出改变时都会发生这种情况。有没有其他人遇到过这样的问题,如果有,你是如何解决的?

谢谢!

4

1 回答 1

2

I saw this recently using VS2012 & TFS2012. We'd recently upgraded TFS, so I assume that was when/how my workspace got screwed up.

Can confirm that the TFS workspace nuke-it-from-orbit procedure fixed it for me:

  1. Manually delete all files on the development machine under the problematic project that can be deleted manually
  2. Right-click on the project and Get Specific Version (VS2012 moved this to Advanced > Get Specific Version)
  3. Make sure both Overwrite check-boxes are checked

Some of that is clearly unnecessary, but it's a bit of feel-better voodoo.

于 2013-04-01T18:25:56.530 回答