Improve everyday.

submodule_update.md

|

Submodule update

Api is a submodule of VoD.

git submodule update <path/to/the/submodule>

Reset submodules at the commit where they were at the last commit of the superproject. In case of no submodule is provided, apply the command to each one.

alt tag

git submodule update --remote <path/to/the/submodule>

Pull the submodules at HEAD stated in .gitmodules.

alt tag

New commit in superproject

After a git submodule update --remote, when you’re in state V0 / HEAD, you create a new commit of the superproject. This creates a new commit, and associate the commit hashes of the submodules currently used.

alt tag

Comments