git-submodule

git submodule

Git submodules are implemented using two moving parts:

Git submodules put specific repo(what) to a specific path(where) in the super project with the specific commit(when):

How to track a branch of a submodule?

-b <branch> option in git submodule add, will add branch in .gitmodule file, which affect the behavior of git submodule update --remote.

comments powered by Disqus