How to Remove DS_Store Files from Git Repository


Go to OSX Daily to read How to Remove DS_Store Files from Git Repository

Remove DS_Store files from git

If you use git on the Mac platform, you likely have come across DS_Store files in a git repository. These can be annoying and clutter a git repo, and you may even run into unnecessary conflicts due to .DS_Store files being maintained in git repos, where you may see error messages like “The files .DS_Store and .DS_Store had a tree conflict”. Because .DS_Store files are not needed by the vast majority of git repositories and generally can just cause issues, it’s reasonable to want to remove .DS_Store files from git repositories.


First, if you’re wondering…

Read more: How to Remove DS_Store Files from Git Repository