mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-14 02:55:41 +02:00
git-submodule: add git submodule add
with path example
This commit is contained in:
parent
ec3bf34b5e
commit
a668fe1db3
1 changed files with 4 additions and 0 deletions
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
`git submodule add {{repository_url}}`
|
`git submodule add {{repository_url}}`
|
||||||
|
|
||||||
|
- Add a git repository as a submodule at the specified directory:
|
||||||
|
|
||||||
|
`git submodule add {{repository_url}} {{directory}}`
|
||||||
|
|
||||||
- Update every submodule to its latest commit:
|
- Update every submodule to its latest commit:
|
||||||
|
|
||||||
`git submodule foreach git pull`
|
`git submodule foreach git pull`
|
||||||
|
|
Loading…
Add table
Reference in a new issue