我有以下文件夹结构:
foo1/
node_modules/
foo2/
node_modules/
bar/
node_modules/
.tfignore
单个.tfignore
文件位于根目录中。
.tfignore
为了node_modules
递归地忽略目录,无论它们在目录层次结构中的什么位置,我应该添加什么?
有很多和我类似的问题。但是所有的都很宽。我想保持简单。请不要使用“待更改”提出任何建议。我只需要一行.tfignore
该.tfignore
文件将忽略所有子目录中的给定模式(除非另有说明)。它会忽略给定名称的文件或文件夹。对于文件夹,它将递归应用。
结果,一个.tfignore
:
node_modules
将忽略文件系统层次结构中命名node_modules
的任何文件夹,并将递归地忽略它们。