Git – make a user-specific gitignore file

gitgitignoreversion control

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?

Best Answer

You can create your own .gitignore using

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

Then put your desired entries in that file.