How to make subfolders repository in Github

Viewed 109

I've been using this folder structure where I would have one main .git folder and then have subfolders inside which doesn't have .git folder.

So as example :

Main Folder
   Subfolder
   Subfolder
   Subfolder

Now what I want to do is, I would like to extract some of those subfolders and make them separate repositories with their histories. Which means subfolders will become a main folder as a repository. Any idea how?

1 Answers
Related