1

I am not doing changes to the submodule and it keeps making problems every time I am merging or committing.

Is there a way to ignore that ?

shannoga
  • 19,649
  • 20
  • 104
  • 169

1 Answers1

3

I am not an expert with XCode projects; But to my understanding this folder holds important files (see here https://stackoverflow.com/a/6120152/1031900).

  1. But if you know what you're doing, and you'd like to ignore changes to RestKit.xcodeproj, do this

    git update-index --assume-unchanged $(git ls-files RestKit.xcodeproj | tr '\n' ' ')
    Better explained here

  2. You could also just add the folder to .gitignore, but when commiting don't use -a switch. Adding the folder to .gitignore file (in the base git folder, if it doesn't exist create it) is done with this line:

    RestKit.xcodeproj/

  3. If you'd like to completely stop tracking the folder, do this:

    git rm -r RestKit.xcodeproj Then, add the folder to .gitignore file as explained above.

You can probably fine some usefull information in Git ignore file for Xcode projects

Hope I helped.

Community
  • 1
  • 1
Ofir Farchy
  • 7,657
  • 7
  • 38
  • 58