We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b2aed7 commit b9296b0Copy full SHA for b9296b0
docs/dev/git.md
@@ -297,6 +297,13 @@ git rm --cached -f src/eigen # if you've already added it to the index
297
git submodule add <url_of_eigen> src/eigen
298
```
299
300
+初始化、更新 submodule 等操作则使用 `git submodule update` 命令:
301
+
302
+```bash
303
+git submodule update --init --recursive # clone 后初始化并拉取 submodule
304
+git submodule update --remote --recursive # 更新 submodule 到远程最新版本
305
+```
306
307
### Stash {#git-stash}
308
309
有的时候,我们在工作目录中进行了一些修改,还没有 commit(例如还没有完全完成),但是需要切换到其他分支进行一些操作。这时可以使用 `git stash` 将当前的修改放在 stash 中,操作完成后,可以使用 `git stash pop` 将修改恢复到工作目录中。
0 commit comments