Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我的 xcode 项目中添加了几个子模块。如何升级这些库?现在我这样做的方式是转到我的第三方文件夹,里面说我有 AFNetworking,我只是从那里拉。不确定这是否是最有效的方法。还有什么想法吗?
这是正确的做法。您需要在存储库中进行更新。由于在子模块中开发是完全有效的,git 不会以这种方式从外部存储库中混淆它。
你想要
cd mysubprojectpath && git pull --ff-only && cd - && git add mysubprojectpath
你会在你的历史中有这个。每次您想这样做时,您所要做的就是点击ctrl-R并开始输入mysubprojectpath以再次执行此操作。一旦从历史中获得正确的行,就点击进入。
ctrl-R
mysubprojectpath