忽略 TFS 合并上的文件

发布于 2024-12-04 04:19:52 字数 167 浏览 0 评论 0原文

我最近从 svn 商店转移到使用 TFS 的商店。我在使用 TFS 合并时遇到的问题之一是忽略文件。我们的分支有几个我们不想合并的文件(版本信息、ivy 文件等),每次运行合并时我们都必须手动取消选中它们。我知道在 SVN 中有一个文件属性可以设置为在合并期间忽略文件,TFS 有类似的东西吗?

提前致谢

I recently moved from a svn shop to one that uses TFS. One of the issues I'm having in using the TFS merge is ignoring files. Our branches have several files that we never want to merge(version info, ivy files etc) and we have to manually uncheck them each time we run a merge. I know in SVN there is a file property you can set to ignore files during a merge, does TFS have anything similar?

Thanks in advance

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你如我软肋 2024-12-11 04:19:52

从命令行,您可以使用如下所示的内容:

tf.exe merge /discard <path to the file to exclude>

这将更新合并历史记录,就好像文件已经被合并一样,因此它不会继续出现在合并候选列表中。

From the command line, you can use something like the following:

tf.exe merge /discard <path to the file to exclude>

That will update the merge history as if the file had been already merged, so it won't continue appearing in the merge candidates list.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文