Git's lesser-known ignore files: .git/info/exclude and global excludes
A developer describes discovering that git supports two additional ignore mechanisms beyond the well-known .gitignore file: a per-clone .git/info/exclude file and a global excludes file set via the core.excludesFile config option. Neither of these files gets committed to the repository, unlike .gitignore, making them suited for personal scratch files and editor or OS clutter respectively. The writer says an AI coding assistant, Claude, prompted the discovery by suggesting untracked personal notes be added to .git/info/exclude.