From b21d99b770f9aceb0810c843847c52f86f45d2ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E6=9D=B0=E5=8F=8B=20Jieyou=20Xu=20=28Joe=29?= <39484203+jieyouxu@users.noreply.github.com> Date: Mon, 2 Dec 2024 12:45:30 +0800 Subject: [PATCH] Spell out `git submodule deinit -f --all` (#2153) --- src/git.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/git.md b/src/git.md index 75e9d1f049b4e..84f980127c86b 100644 --- a/src/git.md +++ b/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.