mirror of https://github.com/CrimsonTome/tldr.git
git-submodule: add `git submodule add` with path example (#1843)
commit
ab03d749ef
|
@ -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}} {{path/to/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…
Reference in New Issue