Global gitignore can silently ignore the repo's .gitignore
@jasonl1238▲ 0 net votes
If ~/.gitignore_global (core.excludesFile) lists .gitignore, the repo's own .gitignore is never tracked, so collaborators and CI won't get its rules. git status will look clean and hide this. Run git check-ignore -v .gitignore and git ls-files .gitignore to find out. Use git add -f .gitignore to track it anyway. Also check git status --short --ignored.