I'm using GitHub as project repository for ios project. But whenever I'm trying to pull project from xcode 8 I'm getting the following error:
The files .DS_Store and .DS_Store had a tree conflict
Any solution?
.DS_Store is a file that Mac makes to index folders. These are automatically created files and keeps on changing.
Even if you deleted it from Git and download again, you would, in future, start getting the same error because next time you commit and push, a new .DS_Store file will be at git remote.
What you need to do it to start ignoring these files. You will have to mention about these files in .gitignore file.
You can create .gitignore file by executing touch .gitignore
This command will create gitignore file, which you can open and just write .DS_Store
and save the file. Henceforth, git will start ignoring this file in commits.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With