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.
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.
7 回答5.3k 阅读
3 回答3.9k 阅读✓ 已解决
5 回答2.8k 阅读
3 回答2.6k 阅读
3 回答964 阅读
1 回答802 阅读
1 回答780 阅读
简单的说,就是当 .gitignore 中配置的路径有
/
开头时,就会从 .gitignore 文件的位置匹配,当没有时,就会在子目录中也匹配。_vendor
时 add/_vendor
时 add