To add another repo as a submodule: `git submodule add` To point the submodule to a specific branch: `git submodule set-branch -b submodule-path`. It's important to pass `--remote` to `git submodule update` to make sure it tracks the branch specified.e