在 TFS 上存储文件
我正在与我的同事一起处理 TFS 存储库中的一些文件。我们必须经常共享这些文件,然而,在我们的开发过程中,它们既不能编译,也不能正常工作。我们不想将它们放入存储库中,因为其他人员在编译解决方案时会遇到问题。然而,手动共享会相当痛苦。有没有办法将文件放在 TFS 上,而不是放在存储库中? (标记为临时的、未完成的或类似的)。
I am working with my co-worker on some files, that are in TFS repository. We have to share these files frequently, however, in the process of our development they are neither compilable, nor working properly. We don't want to put them in the repository, because the rest of the crew shall have problems with compiling the solution. However, the manual sharing would be rather painful. Is there a way to put files on TFS, but not inside repository? (mark as temporary, not finished or something like that).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用搁置集 - 如果您搁置了一组更改,那么您的同事可以拿起它们,而团队的其他成员将永远不会看到它们。这有点像 PITA,因为您需要有 2 个架子集(每个架子集 1 个,因为您只能更新自己的架子集)。唯一的其他方法是当您有可编译的代码时进行分支然后合并。
You can use a shelveset - if you shelve your set of changes then your colleague can pick them up and the other members of the team will never see them. It is a bit of a PITA as you need to have 2 shelvesets (1 each as you can only update your own). The only other way is to branch and then merge when you have compilable code.
另一种选择是将代码分支到你们两个使用的新分支中。当您完成该文件的工作并且它将不再破坏主构建时,您可以将该文件合并回开发分支。
Another option is to branch the code into a new branch that the two of you use. When you are done working on the file, and it will no longer break the main build, you can then merge that file back down to the development branch.