Removing .DS_Store Files from Git Repositories
26 Mar 2015Removing .DS_Store Files from Git Repositories
.DS_Store are files created on OS X systems to store Finder configurations. To remove .DS_Store files from your git repository, create a .gitignore file on your repository and enter the filename to be ignored. Example:
.DS_Store
Now, just remove .DS_Store from your master repository. If you want a script to remove .DS_Store files from your folders, you can use this script. ;)