So you have a nice big project that you’ve been working on for a while and you
are at a state where you think it will be nice to split a part of the project.
This can be to either create it as a library to use it with other projects or
just maintain it independantly.
There are two steps involved:
Splitting out the subpath from the repository and creating a new repository
Using this new git repository we’ve created in the main repository so that we
can continue working.
Let’s tackle them one at a time.
Splitting a subpath into a new repository
I’m assuming that we’re interested in keeping the git history - else, you can
simply just copy out the directory into a new folder and init it as a new