Two Git Ignore Files Nobody Told Me About — Mihai Dinculescu
Git reads ignore patterns from three files, not one. .gitignore is for the team, .git/info/exclude is for your clone, and a global excludes file covers your machine — the two you have never heard of keep a clean working tree without publishing your private filenames.