Voloda2
Voloda2

Reputation: 12607

Incorrect behaviour git submodule

I created a template project. I called it Test. I created repo on github. I found the RestKit.xcodeproj file inside of the cloned RestKit project directory and draged it into the Project Navigator.

cd Test
git init
git submodule add git://github.com/RestKit/RestKit.git
git add .
git add -u
git commit -m "first commit"
git push

Push was OK.

My Test project:

enter image description here

I decided to check github's repo. I do git clone. Clone was ok, but RestKit.xcodeproj appeared in red color.

Test project after cloning:

enter image description here

What is wrong ?

Upvotes: 0

Views: 196

Answers (1)

Nick Moore
Nick Moore

Reputation: 15857

After clone you need to git submodule update -i

Upvotes: 2

Related Questions