2011-10-12 89 views
0

我創建了一個模板項目。我稱之爲測試。我在github上創建了回購協議。我在克隆的RestKit項目目錄中找到了RestKit.xcodeproj文件,並將其拖放到Project Navigator中。不正確的行爲git submodule

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 

推送還行。

我的測試項目:

enter image description here

我決定檢查GitHub的回購。我做git克隆。克隆沒問題,但RestKit.xcodeproj以紅色顯示。克隆後

測試項目:

enter image description here

有什麼不對?

+0

這是什麼混帳地位的新的回購在命令行上說什麼? –

回答

2

clone後,您需要git submodule update -i

+0

謝謝,它的作品很神奇 – Voloda2