How can I find the gitignore file and line that is causing a file to be ignored by git?
From the repo root, try this:
find . ~/.gitignore .git/info/exclude -name '*gitignore' -exec cat {} + | less
Also check that you're not using a different excludes file:
git config -l | grep exclude
core.excludesfile=~/.gitignore
You can also get that error when you have submodules in a subfolder instead at the git project's root.
Thanks to Jon Lin and Christopher for helping me figure this out on the original question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With