core.excludesFile
The setting naming a personal ignore file that applies to every repository on your machine.
In more detail
It suits files your own tools create, such as editor backups or operating system folder files, that do not belong in each project's shared .gitignore. If unset, Git uses ~/.config/git/ignore.
Example
git config --global core.excludesFile ~/.gitignore_globalRelated terms
- .gitignore — A text file of patterns naming untracked files Git should not report or add, such as build output and logs.
- .git/info/exclude — A private ignore file inside .git that works like .gitignore but is never committed, for clutter only you create.
Taught in
- Ignoring Files, And The Tracked File Trap — Advanced Git Internals & Distributed Workflows