.tfignore 路径不会被忽略

.tfignore path not getting ignored

我有以下 folder.I 需要忽略目标文件夹中的所有文件夹和文件。目前我正在做如下

\abc\cde\my-app-1\target\*
 \abc\cde\my-app-2\target\*
\abc\cde\my-app-3\target\*

我将在未来创建 my-app-4 等等,我需要继续添加路径 .tfiignore file.How 我可以在 .tfignore 中创建一个通用路径,这样我就不必修改我的.tfignore 每次.

我在下面试过,但没用

 \abc\cde\*\target\*

您可以尝试将以下内容添加到 .tfignore 以忽略 target 文件夹。

abc\cde\target

abc\target

我已经测试了上面的路径。他们都按预期工作。