Git Moving History to New Repo

From UVOO Tech Wiki
Jump to navigation Jump to search

https://stackoverflow.com/questions/41811986/git-move-directory-to-another-repository-while-keeping-the-history

git subtree split -P dir-to-move -b split

git remote add repo-1 repo-1-url.git
git checkout split
git push repo-1-url.git
# git subtree add --prefix dir-to-move split