Merging multiple repositories into one using local copies.

Over a month ago, I deleted my Github account with 3 private repositories. However, I still have a local copy of the repositories. I want to merge these three repositories into a single repository, with each repository getting its own folder. The problem is that I want to maintain the commits in each repository.

This means I want to merge repositories A, B, and C into their respective folders in repository D.

“git push --mirror

  works, except for the fact that I would be stealing credit for 200,000 lines of code after adding the files from the other repositories.

Hi @matthewutzig,

Thanks for being here! I can’t think of any obvious way to significantly improve your method, but perhaps using GraftPoint? I hope this helps!