Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7650993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:23:40+00:00 2026-05-31T11:23:40+00:00

There is one file that I always made changes to, but that I never

  • 0

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. How can I configure TFS to do this?

Details:
There is another developer on the project that has checked in some bad code that I prefer to comment out on my local machine. Since they are a client, I prefer to keep this a technical exercise rather than make it a political one.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:23:42+00:00Added an answer on May 31, 2026 at 11:23 am

    One of TFS undervalued features is cloaking. Like SVN’s ignore, cloaking will let you ignore a certain folder or files.

    Cloaking a Folder

    Cloaking a folder is easy: just right click a folder on the source control explorer and select Cloak

    Cloaking a File

    The UI doesn’t expose cloaking on a single file, but sometimes you may want to cloak a certain file like app.config.

    1. Go to File > Source Control > Workspaces

    2. Select your workspace and click Edit.

    3. Under the working folders, and a new entry with status Cloaked and enter the full server path of the file you want to cloak. (E.g.: $/MyTeamProject/Dev/Src/SomeProject/app.config)

    Cloaking a file


    Using Local Workspace .tfignore file (In TFS 2012, 2013, 2015 and up)

    In Local Workspace, use you can use .tfignore file (the equivalent of .gitignore for Git)

    .tfignore file example
     ######################################
    # Ignore .cpp files in the ProjA sub-folder and all its subfolders
    ProjA\*.cpp
    # 
    # Ignore .txt files in this folder 
    \*.txt
    #
    # Ignore .xml files in this folder and all its sub-folders
    *.xml
    #
    # Ignore all files in the Temp sub-folder
    \Temp
    #
    # Do not ignore .dll files in this folder nor in any of its sub-folders
    !*.dll
    

    Blocking by Permissions

    Another approach is deny check-in on the file
    (requires administrative privileges):

    1. Right click the file > click Properties > Security

    2. Add your user and mark Deny on the Check In permission.

    Deny Check In

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is one html page that contains only a .swf file that can be
Network file systems are offered by Windows and (L)Unix. Is there one for IBM
Is there a one button way to save a screenshot directly to a file
Is there a one-liner to read all the lines of a file in Python,
Currently there are 2 pages in a jsp file: one of them displays the
Say I have two files where there is one number per line File 1
Is there a way to specify a one dimensional array in a ini file.
Let's say there is a file called myfile.txt with the following contents: one two
Is there a maximum lengh for a file extension? The longest one I've seen
As we know to generate a class file there should be atleast one class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.