From 4312a9a792dcd04eda067bc40e5f41bed9cf8773 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Wed, 17 Dec 2025 20:16:08 +0200 Subject: [PATCH] git-submodule: simplify commands (#20073) --- pages/common/git-submodule.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/git-submodule.md b/pages/common/git-submodule.md index b8188324f6..d1c641c357 100644 --- a/pages/common/git-submodule.md +++ b/pages/common/git-submodule.md @@ -5,7 +5,7 @@ - View existing submodules, and the checked-out commit for each one: -`git submodule status` +`git submodule` - Install a repository's submodules (listed in `.gitmodules`): @@ -19,9 +19,9 @@ `git submodule add {{repository_url}} {{path/to/directory}}` -- Update every submodule to its latest commit: +- Update submodules to their latest commits: -`git submodule update --init --recursive --remote` +`git submodule update --remote` - Change the URL of a submodule: