TFS 2010 : How to check in files that were deleted but not deleted through TFS

标签 tfs

我在本地工作区中有一些文件被 check out 然后删除,但没有通过 TFS 删除。 TFS 在挂起的更改 View 中仍将它们标记为“编辑”。当我尝试 checkin 已删除的文件时,我收到一条错误消息,指出无法找到这些文件。有没有办法告诉 TFS 这些文件已被删除,并且它们也应该在源代码管理中删除?

最佳答案

您可以通过 team explorer , 右键单击​​已删除的文件并执行 undo pending changes .然后通过 team explorer删除它们并 checkin 。

如果这不起作用 - 通过 team explorer 右键单击​​已删除的文件;做一个 get specific version并选中两个复选框以覆盖文件:

enter image description here

这将从 TFS 中获取已删除的 [from workspace] 文件。执行 undo pending changes在文件上。然后通过团队资源管理器删除文件并 checkin 。

关于TFS 2010 : How to check in files that were deleted but not deleted through TFS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14359784/

相关文章:

testing - TFS 测试 Controller 只能用于一个项目集合吗?

tfs - Scrum 框架中故事点的度量尺度

docker - VSTS/TFS中的命令嵌套

azure - 当我在 Windows Azure 上交换临时部署和生产部署时出现 "error: 19 - Physical connection is not usable"

tfs - 将本地 TFS 与 Slack 集成

c# - 如何通过代码获取TFS工作项验证错误信息?

tfs - Jenkins 要求接受 TFS EULA

TFS 报告问题。可报告字段

tfs - 如何从 TFS 存储库中删除文件而不删除本地文件

c++ - 在 Visual Studio 中使用 C++ 计划构建