I have a repo on Github in which I intended to include a second Github repo (also mine) as a subtree. Unfortunately my inexperience means this failed so all the work I've committed since January has gone into the history of the main repo.
How can I copy this history into the second repo then change the main project to use it as a subtree?
Edit: One of the comments (now deleted) asked why I didn't just use a single repo. The main repo is private but the second repo is public - I'm trying to share what I can.