Can I make a user-specific gitignore file?

asdsadasds picture asdsadasds · Apr 20, 2011 · Viewed 23.3k times · Source

I want to change the gitignore, but not everyone on the team wants these changes. How can a user have their own specific git ignore file?

Answer

Dave Kincaid picture Dave Kincaid · Apr 20, 2011

You can create your own .gitignore using

git config --global core.excludesfile $HOME/.gitignore

Then put your desired entries in that file.