そういう場合は、皆がそうなっていなければならない内容を.gitignoreに書き、自分だけがそうなっていなければならない内容を.git/info/excludeに書くとよい、はず
.gitignoreの方は皆がそうなっていなければならない内容なので、変更したらコミットする
詳しくは https://git-scm.com/docs/gitignore を参照
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.