<分区>
如何找到导致文件被 git 忽略的 gitignore 文件和行?
标签 git
<分区>
如何找到导致文件被 git 忽略的 gitignore 文件和行?
最佳答案
从 repo root,试试这个:
find . ~/.gitignore .git/info/exclude -name '*gitignore' -exec cat {} + | less
同时检查您没有使用不同的排除文件:
git config -l | grep exclude
core.excludesfile=~/.gitignore
你 can also get that error when you have submodules in a subfolder instead at the git project's root .
感谢Jon Lin和 Christopher帮助我在 original question 上解决这个问题.
关于git - 查找导致文件被 git 忽略的 gitignore 文件和行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11764439/