工作流:从TFS中的签入中排除迁移文件



我们在TFS中有3个主要的Repoes分支(根"PROD"、QA、开发"DEV")我们的迁移文件存在一些问题,有时在3个Repoes之间不同步。我想问的是,如果您正在从dev合并到QA,我们是否应该将迁移文件从checkIn中排除,而仅将checkIn配置文件排除?特别是在Dev和QA之间?

注意:有时会有许多来自Dev 的子分支

您可以创建.tfignore文件。https://msdn.microsoft.com/en-sg/library/ms245454(v=vs.140).aspx

######################################
# 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

另一种方法是在TFS Power Tools中使用签入策略(Forbidden Patterns policy),如何添加签入策略请参阅MSDN中的链接。

最新更新