Removing .xcuserstate and DS_Store files from git
In Xcode I noticed that .DS_Store and *.xcuserstate always change and don't need to be commited. So, I wrote a .gitignore file that contains this: .DS_Store *.xcuserstate among other entries. Then I used: git rm --cached *xcuserstate git rm ---cached .DS_Store To remove the these file types already under version control. However, when I go to merge Xcode tells me that there are changes that need to be committed. Those changes include .DS_Store files and .xcuserstate files. So, I tried this: How can I Remove .DS_Store files from a Git repository? find . -name .DS_Store -print0 | xargs -0 git rm