开发者

Ignore files on TFS merge

开发者 https://www.devze.com 2023-04-04 19:43 出处:网络
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,

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 ti开发者_如何学JAVAme 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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号