rossbar
9/16/2015 - 2:11 AM

Add a git repo's entire history to another git project with subtree

Add a git repo's entire history to another git project with subtree

# /rel/path/to/subproject/folder should not be created yet
# <branch> is the branch of the subproject you want to include in the current project
# Source: http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/
git subtree add --prefix /rel/path/to/subproject/folder git@github.com:<user>/<subproject>.git <branch>