Ideally, the gitignore should only have files related to the project itself. Anything related to one's machine can be in a global gitignore file.
But that's neatpicking :four_leaf_clover: