cpz1bq
Last Updated: February 25, 2016
·
1.877K
· artfulhacker
10425126 10103995008712411 6222461894198440691 n

How do I exclude a specific files from TFS 2012 source control?

It is way easier that in previous versions of TFS, simply create a .tfignore file.

For 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
Say Thanks
Respond

2 Responses
Add your response

14178
0b23cd10aa838596d131245ffabe569b

what about an ignore for all /packages/ directories for the entire project collection?

over 1 year ago ·
14180
10425126 10103995008712411 6222461894198440691 n

how about doing the following:

packages/*
!packages/repositories.config

over 1 year ago ·