I have github repo with 2 folders: client/server. I need to make separate repositories from these folders, but so that the commit history for each repository is not lost. After that, the main repository must be deleted. I came across the filter-repo utility on the Internet, but I didn't really figure out how it works. Could you help with that?
MAIN-REPO:
.git
client
server
expected result:
client:
.git
server:
.git
thx!
subtree split
TL;DR;
subtree split
will "split" your content into branchesLong answer
How?
git subtree split <path> -b <branch>
and then add remote for each submodule and push the branch to the remote.Once all your submodules are added commit the
.gitmodules
file