Today I learned that instead of editing .gitignore
, you can use .git/info/exclude
to ignore files only in your local repo.
It works just like .gitignore, but it’s not committed — perfect for personal config files, local test data, or IDE settings you don’t want others to see.
I needed to create one helper class in our project, and I wanted it to stay completely local.