Git Moving History to New Repo

From UVOO Tech Wiki
Revision as of 16:50, 20 August 2021 by Busk (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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