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.
2 回答1.1k 阅读✓ 已解决
1 回答1.2k 阅读✓ 已解决
2 回答829 阅读✓ 已解决
1 回答644 阅读✓ 已解决
1 回答799 阅读
1 回答617 阅读
154 阅读
简单的说,就是当 .gitignore 中配置的路径有
/
开头时,就会从 .gitignore 文件的位置匹配,当没有时,就会在子目录中也匹配。_vendor
时 add/_vendor
时 add