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.5k 阅读✓ 已解决
1 回答1.3k 阅读✓ 已解决
1 回答785 阅读✓ 已解决
2 回答968 阅读✓ 已解决
1 回答962 阅读
1 回答735 阅读
639 阅读
简单的说,就是当 .gitignore 中配置的路径有
/
开头时,就会从 .gitignore 文件的位置匹配,当没有时,就会在子目录中也匹配。_vendor
时 add/_vendor
时 add