开发者

Ignore files on TFS merge

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜