It depends. It's often been with the case for me that since I'm an undergrad and a lot of my collaborators are not too experienced with Git that people don't have their global gitignores set properly. In this case, it's better to put the ignores along with the code that everyone's pulling from.