git subtree add --prefix=<sub-repository-path> <sub-git-url> master [--squash] Add a new child repository to the parent repositorygit subtree pull --prefix=<sub-repository-path> <sub-git-url> master [--squash] pull to update the child repositorygit subtree push --prefix=<sub-repository-path> <sub-git-url> master Push sub-repositorygit remote add -f <sub-remote-git> <sub-git-url>
git subtree add --prefix=<sub-repository-path> <sub-remote-git> master