gpt4 book ai didi

TFS 排除一个目录 - .tfignore 不起作用,它是一个非常大的目录

转载 作者:行者123 更新时间:2023-12-05 00:21:43 24 4
gpt4 key购买 nike

我看过其他帖子并在 stackoverflow 上阅读过 - How to ignore files/directories in TFS for avoiding them to go to central source repository?

然而,这似乎不起作用。

我有一个名为/FS 的根文件夹,在该目录中我有以下 .tfignore

    ################################################################################
# This .tfignore file was automatically created by Microsoft(R) Visual Studio.
#
# Local items matching filespecs in this file will not be added to version
# control. This file can be checked in to share exclusions with others.
#
# Wildcard characters are * and ?. Patterns are matched recursively unless the
# pattern is prefixed by the \ character.
#
# You can prepend a path to a pattern to make it more specific. If you do,
# wildcard characters are not permitted in the path portion.
#
# The # character at the beginning of a line indicates a comment.
#
# The ! prefix negates a pattern. This can be used to re-include an item after
# it was excluded by a .tfignore file higher in the tree, or by the Team
# Project Collection's global exclusions list.
#
# The / character is interpreted as a \ character on Windows platforms.
#
# Examples:
#
# # Excludes all files ending in .txt in Alpha\Beta and all its subfolders.
# Alpha\Beta\*.txt
#
# # Excludes all files ending in .cpp in this folder only.
# \*.cpp
#
# # Excludes all files ending in .cpp in this folder and all subfolders.
# *.cpp
#
# # If "Contoso" is a folder, then Contoso and all its children are excluded.
# # If it is a file, then only the "Contoso" in this folder is excluded.
# \Contoso
#
# # If Help.exe is excluded by a higher .tfignore file or by the Team Project
# # Collection global exclusions list, then this pattern re-includes it in
# # this folder only.
# !\Help.exe
#
################################################################################

\BRAND
\CO
\COVER
\COVERBANNER
\DEPT
\DEPT-CATS
\LIB
\PRODUCTS

但是,TFS 不断尝试添加这些目录。我什至在根目录下还有另一个 .tfignore

/FS

我只需要 TFS 中的/FS。这是不属于 SOURCE 控制的 15GB 图像工作,我们有多个区域备份这些图像,这是非常资源密集的创建分支。

我是否需要使用 CMD PROMPT 从 TFS 中删除/FS?任何帮助都会很棒。我只是感到沮丧和卡住。

最佳答案

我认为 .tfignore与本地和服务器工作区的工作方式相同,因此:

是的,你必须删除\FS从源代码管理,但从团队资源管理器这样做就足够了。
添加 .tfignore\FS s 父目录。
这将确保您的 \FS文件夹不在源代码管理中,并在您创建新分支时被复制。

关于TFS 排除一个目录 - .tfignore 不起作用,它是一个非常大的目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31269180/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com