.gitignore Isn't the only way to ignore files in Git
- Developer Tools
- Programming
- Open Source
The post is a practical Git refresher. It points out that `.gitignore` is only one layer in Git’s ignore system, then introduces two others that many developers never use: `.git/info/exclude` for local ignore rules that stay inside one clone, and a per-user global ignore file under Git config for personal editor, OS, and tooling junk. It also highlights `git check-ignore` as the command to explain why a file is being ignored. That landed as the most useful part for many readers, not because the mechanics are obscure in the docs, but because teams routinely keep solving the wrong problem by stuffing every personal artifact into shared `.gitignore` files.
If your repos keep accumulating editor, OS, and local tooling junk, move that policy into per-user ignores and reserve `.gitignore` for files the project itself creates. Also teach people `git check-ignore` and the difference between shared, local, and per-user ignore scopes, because that alone cuts a lot of low-value review churn.
- nelson.cloud
- Discuss on HN