git-submodule: add `git submodule add` with path example (#1843)

coverage
Starbeamrainbowlabs 2017-12-30 16:08:12 +00:00 committed by GitHub
commit ab03d749ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@
`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:
`git submodule foreach git pull`