A .gitignore file tells the Git version control software to stop tracking files you never want to add. But people have differing workflows and I didn’t necessarily want my personal preferences to be enforced in our team repo.

That led me to discover there’s a /info/exclude file in your repo’s .git file which you can add your desired ignore patterns to, and they only affect your local experience. More about how the system works is in the documentation.