tldr/pages/common/git-submodule.md
Zak Remer b184ceca66 git-submodule: Add tldr page for the git-submodule command.
Update git-submodule to pass linter requirements.
2016-03-29 14:06:55 -07:00

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