忽略 SSAS 表格项目中文件夹的内容

Ignore the content of a folder in an SSAS tabular project

我有一个 SSAS 表格项目,我正在使用 Bitbucket,我试图忽略 .gitignore 文件中的一些特定文件夹,如下所示(但我有一个长列表):

/Assurance/bin/
/Delegue_Etablissement/bin/

完整路径是C:\XXX\Delegue_Etablissement\bin\Data 我想忽略所有路径下 bin 下的所有文件(动态)。

我用了/*/bin/但是没用

只需在您的忽略模式列表中添加 bin/(无前导 /)。

这将忽略在任何子目录级别完全命名为 bin 的目录。


引用 git help gitignore :

  • If there is a separator at the beginning or middle (or both) of the pattern, then the pattern is relative to the directory level of the particular .gitignore file itself. Otherwise the pattern may also match at any level below the .gitignore level.