mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-10-29 18:05:30 +08:00
git-submodule: simplify commands (#20073)
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user