Create git submodule Run in terminal git submodule add -b <branch> <source-github-repository-url> <destination-path-within-project> In case the submodule has submodules within: git submodule update --recursive --init