How can I always block checkin of a specific file in TFS

前端 未结 8 1834
隐瞒了意图╮
隐瞒了意图╮ 2020-11-28 04:18

There is one file that I always made changes to, but that I never want to be checked in. I would like TFS to block me from ever checking it in or committing the changes. H

8条回答
  •  爱一瞬间的悲伤
    2020-11-28 04:21

    For TFS 2012, just use the .tfignore file.

    When you add ignored files to folders that are mapped in a local workspace, they do not appear in the Pending Changes page in Team Explorer.

    http://msdn.microsoft.com/en-us/library/ms245454.aspx

提交回复
热议问题