Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The files .DS_Store and .DS_Store had a tree conflict error from Git in xcode 8 [duplicate]

Tags:

git

xcode8

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?

like image 449
nik Avatar asked Sep 30 '16 12:09

nik


1 Answers

.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.

like image 184
prabodhprakash Avatar answered Nov 06 '22 22:11

prabodhprakash