简体   繁体   中英

How do I update submodule?

My file gitmodules is

[submodule "RestKit"]
    path = RestKit
    url = git://github.com/RestKit/RestKit.git
[submodule "restkit"]
    path = restkit
    url = git://github.com/RestKit/RestKit.git`enter code here`

My project is :

在此输入图像描述

How do I update submodule?

Not sure how to do this in XCode but you can do it in the terminal with

git submodule foreach \
git pull origin master

This will loop through all your submodules and do a git pull on them.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM