Error while git checking

When checking, the following error occurs:

error: The following untracked working tree files would be overwritten by checkout: Examples/RKTwitter/RKTwitter.xcodeproj/project.xcworkspace/contents.xcworkspacedata RestKit.xcodeproj/project.xcworkspace/contents.xcworkspacedata Please move or remove them before you can switch branches. Aborting 

What should I do? Take it away? If I want to move it, I donโ€™t know where to move it.

+4
source share
1 answer

Remove it. This is just an Xcode 4 workspace data file that will be restored after the project is reopened in Xcode 4. A warning also indicates that this file was created on the other end, where you are pulling from.

So, I suggest you add this file to the .gitignore list and make git rm in this file, where it was added to the git repository.

+7
source

Source: https://habr.com/ru/post/1343851/


All Articles