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_global

Related terms

Taught in

References