.git/info/exclude

A private ignore file inside .git that works like .gitignore but is never committed, for clutter only you create.

In more detail

Its lines use the same pattern language as .gitignore. Because it lives in .git, it affects only your clone; the rest of the team never sees it. The info directory it sits in also holds a few other rarely touched files.

Example

printf 'scratch.txt\n' >> .git/info/exclude

Related terms

Taught in

References