.DS_Store is user-specific and should not appear in a project .gitignore. If needed add it to the user global .gitignore instead.