![](/img/trans.png)
[英]Visual Studio 2015 new files not being added to source control automatically
[英]Visual studio 2015 tfs add files to source control
您可以单击“ 检测到 ”链接以弹出“促进候选者更改”对话框,然后选择要检入以促进升级的文件。
如果使用本地工作区,则可以添加.tfignore文件,以忽略不想在源代码管理中检测到的文件。 例如:通过文件扩展名.txt忽略,那么所有.txt文件都将在源代码管理中被忽略。 它们将不会被检测到。
有关详细信息,请参见自定义版本控制忽略的文件 。
请注意,使用TFVC,您需要在每个解决方案根目录中放入.tfignore 。
.tfignore文件规则以下规则适用于.tfignore文件:
#开始注释行
*和? 支持通配符。
除非以\\字符为前缀,否则filespec是递归的。
! 对filespec求反(不忽略与模式匹配的文件)
.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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.