Can I make a user-specific gitignore file?
In their .gitconfig:
[core]
excludesfile = ~/.global_gitignore
That way, they can ignore certain types of files globally. Each user can have their own global ignore file.
You can create your own .gitignore using
git config --global core.excludesfile $HOME/.gitignore
Then put your desired entries in that file.
For user-specific and repo-specific file ignoring you should populate the following file:
$GIT_DIR/info/exclude
Usually $GIT_DIR stands for:
your_repo_path/.git/