about summary refs log tree commit diff
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-12-02 12:45:30 +0800
committerGitHub <noreply@github.com>2024-12-02 12:45:30 +0800
commite124246da8f49be27074dc2a8f6f6d3fe64c8220 (patch)
tree427b09b9ff9e4f342583cf6d8b6360028abff237
parentc207d2f2882bf55bc41df8dbc64af90e1367b2eb (diff)
downloadrust-e124246da8f49be27074dc2a8f6f6d3fe64c8220.tar.gz
rust-e124246da8f49be27074dc2a8f6f6d3fe64c8220.zip
Spell out `git submodule deinit -f --all` (#2153)
-rw-r--r--src/doc/rustc-dev-guide/src/git.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/git.md b/src/doc/rustc-dev-guide/src/git.md
index 75e9d1f049b..84f980127c8 100644
--- a/src/doc/rustc-dev-guide/src/git.md
+++ b/src/doc/rustc-dev-guide/src/git.md
@@ -597,6 +597,14 @@ $ git submodule foreach git reset --hard
 
 and then try `git submodule update` again.
 
+### Deinit git submodules
+
+If that doesn't work, you can try to deinit all git submodules...
+
+```
+git submodule deinit -f --all
+```
+
 Unfortunately sometimes your local git submodules configuration can become
 completely messed up for some reason.