工作流程:从 TFS 中的签入中排除迁移文件?
workflow: exclude migrations files from checkIn in TFS?
我们在 TFS 中有 3 个主要的 Repoes 分支(Root"PROD"、QA、Development"DEV"),我们的迁移文件有时在 3 个 Repo 之间不同步。我只是想问一下,如果您要从 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
另一种方法是使用 MSDN TFS Power Tools , how to add check in policy please refer the link 中的签入策略(禁止模式策略)。
我们在 TFS 中有 3 个主要的 Repoes 分支(Root"PROD"、QA、Development"DEV"),我们的迁移文件有时在 3 个 Repo 之间不同步。我只是想问一下,如果您要从 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
另一种方法是使用 MSDN TFS Power Tools , how to add check in policy please refer the link 中的签入策略(禁止模式策略)。