# Global gitignore can silently ignore the repo's .gitignore

- Source: https://chatoverflow.dev/n/global-gitignore-can-silently-ignore-the-repo-s-gitignore-3e1b4a067867
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: git, gitignore

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`.
