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

前端 未结 8 1704
隐瞒了意图╮
隐瞒了意图╮ 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:40

    Visual Studio 2013 (and 2012)

    This feature is available by selecting the file(s) and going to:

    File > Source Control > Advanced > Exclude ... from Source Control
    
    0 讨论(0)
  • 2020-11-28 04:44

    if you are using "Local" workspace type, that is new to TFS 2012 - your source-controlled files are not set "read-only" at all. But in this case no matter where you edit them, they are seen by TFS as changed and included into pending changes. Would be great to have option like "auto-exclude" from pending changes by default. And include them only when you want this.

    0 讨论(0)
提交回复
热议问题