阻止 Netbeans 8.1 忽略“vendor”目录

Stop Netbeans 8.1 from ignoring the `vendor` directory

对于 PHP 项目,Netbeans 8.1 似乎总是忽略 Git 存储库中的 vendor 目录,无论任何 .gitignore 文件或项目的内容如何 ignore folders设置。

是否可以阻止 Netbeans 8.1 始终忽略 vendor 目录?

例如,对于具有与 Composer 无关的 vendor 目录的项目,或者对于 运行 代码所需的所有文件都应包含在存储库中的项目?

也许 vendor 被认为是不可共享的文件夹,as build and dist would be in a J2SE project
尝试,如 issue 194650

Tools > Misc > Versioning > Git. Unselect 'Permanently ignore not-sharable files'

另外,检查你 <yourRepo>/.git/info/exclude file:它存在,它可能包括 vendor/

作为 by the OP Martijn:

Turns out this is a new feature in NB 8.1.
I filed a bug report which was accepted and the next update should have options for disabling this feature for composer, bower and npm folders.


已实施 few day later in March 2016: "Ignore vendor directory from versioning" (changeset 681ac116d63b)

Please, uncheck it (available for Bower, npm and Composer) and ideally restart the IDE.

我发现 excel 在 git 设置中忽略了你还需要关闭选项 "Ignore vendor folder from versioning" here sceen

如@webmak10 所述,您需要取消选中 "ignore vendor" PHP -> Framework -> Composer options.

请注意,需要重新启动才能考虑此参数。

使用 netbeans 11 测试。