2016-05-18 50 views
0

我們在TFS(Root「PROD」,QA,Development「DEV」)中有3個主要的Repoes分支,我們有一些問題,我們的遷移文件有時會在3個Repoes之間不同步。只是我想問一下,如果您從開發合併到質量檢查,我們是否應該從checkIn中排除遷移文件,並僅檢查checkIn配置文件?特別是Dev和QA之間?工作流程:從TFS中的checkIn中排除遷移文件?

注:有時會有許多子分支從開發

回答

1

您可以創建一個.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,如何在策略中添加檢查,請參閱從MSDN的link