So I have this big project where I wrote a module. It's encapsulated from the other files and I'd like to extract it to an entirely new repo so I can distribute it, preferably while maintaining it's history.
project folder
| fileone.code
| filetwo.code
| module folder
| | moduleindex.code
| | modulefeature.code
| | modulefeaturetwo.code
| someotherfile
| entryfile.code
Basically how to I cut just everything in module folder and all of the commits that include changes to module folder into a new repo? I assume it involves some sort of git cherry-picking but I don't know how to cherry-pick only changes to a specific file from a specific commit, but I can't find the right guides. Thoughts?