gpt4 book ai didi

ios - 不正确的行为 git 子模块

转载 作者:行者123 更新时间:2023-11-28 23:12:39 25 4
gpt4 key购买 nike

我创建了一个模板项目。我称之为测试。我在 github 上创建了 repo。我在克隆的 RestKit 项目目录中找到了 RestKit.xcodeproj 文件,并将其拖到项目导航器中。

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 的 repo。我做 git 克隆。克隆正常,但 RestKit.xcodeproj 显示为红色。

克隆后的测试项目:

enter image description here

怎么了?

最佳答案

clone之后你需要git submodule update -i

关于ios - 不正确的行为 git 子模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7741410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com