tldr/pages/common/git-submodule.md
Te-Chi Liu 5a54763c72 fixup: token string style (#1081)
- use underscore rather than minus
- use lower case rather than uppder case
2016-09-21 21:05:46 +05:30

314 B

git submodule

Inspects, updates and manages submodules.

  • Install a repository's specified submodules:

git submodule update --init --recursive

  • Add a git repository as a submodule:

git submodule add {{repository_url}}

  • Update every submodule to its latest commit:

git submodule foreach git pull