开发者

Incorrect behaviour git submodule

开发者 https://www.devze.com 2023-04-12 18:09 出处:网络
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.

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:

Incorrect behaviour git submodule

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:

Incorrect behaviour git submodule

What is wrong ?


After clone you need to git submodule update -i

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号