Skip to content

Commit 6c5f566

Browse files
committed
Update README.md
1 parent 3a7c966 commit 6c5f566

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,8 @@ git submodule add --force '仓库地址' '路径'
10401040
git submodule init # 初始化 submodule
10411041
git submodule update # 更新submodule(必须在根目录执行命令)
10421042
git submodule update --init --recursive # 下载的工程带有submodule
1043+
git submodule update --recursive --remote # 对于 git 1.8.2 或更高版本,添加了选项 --remote 以支持更新远程分支
1044+
git pull --recurse-submodules # 更新 submodule git 1.7.3 版本
10431045
```
10441046

10451047
当使用`git clone`下来的工程中带有submodule时,初始的时候,submodule的内容并不会自动下载下来的,此时,只需执行如下命令:

0 commit comments

Comments
 (0)