|  1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 | # 添加一个子模块
git submodule add [git repo]
# 查看子模块
git submodule
# 初始化子模块
git submodule init
# 更新子模块
git submodule update
# 初始化并更新子模块
git submodule update --init
# 初始化递归更新子模块
git submodule update —init --recursive
 |