gists/git.md

14 lines
292 B
Markdown

# Git
## Submodules
* Initialize a git submodule after a clone
`git submodule update --init --recursive`
* Update a git submodule
`git submodule update`
* Update the reference to the last commit in the submodule inside the parent repository
`git submodule update --remote --merge`