Bring a Git Subfolder and History to New Repo

January 17, 2025 note-to-self

Bring a git subfolder and it's history over to start a new repo:

https://docs.github.com/en/get-started/using-git/splitting-a-subfolder-out-into-a-new-repository

I did this for a repo and it was not as straightforward as that sounds. I actually downloaded the python version and just ran it with python, but didn't save my notes.

It worked well, though. When I was done, I had just that subfolder, and all the history that went with it, and saved that as the first commit of a new repo.