Splitting a subfolder out into a new repository - User Documentation
▻https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository
You can turn a folder within a Git repository into a brand new repository.
If you create a new clone of the repository, you won’t lose any of your Git history or changes when you split a folder into a separate repository.