Git doesn’t list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined.
Git doesn’t list excluded directories for performance reasons, so any patterns on contained files have no effect, no matter where they are defined.
7 回答5.3k 阅读
3 回答3.9k 阅读✓ 已解决
5 回答2.8k 阅读
3 回答2.6k 阅读
3 回答964 阅读
1 回答802 阅读
1 回答780 阅读
https://git-scm.com/docs/giti...
需要结合上下文理解,原文前一句是在说如果目录被 ignore 了,那么目录下的文件不管怎样都不可能重新被 track。后一句就是在解释原因了,因为性能问题 git 不会去罗列被 ignore 目录下的文件,目录被整体排除,因此目录下的文件以任何形式的 pattern 存在都还是会被 ignore,同时和 pattern 的顺序无关。
提供上下文信息和原文链接能更快解决问题,只给一句话太难猜了。