1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:42:07 +02:00
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

15 lines
314 B
Markdown

# 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`