1

I want to break a single GitHub project into two or three new projects. Should I clone the original and have a duplicate history? Should I just start a new project and forget about the history for the new project?

Ryan
  • 5,883
  • 13
  • 56
  • 93

1 Answers1

0

If you can isolate your projects in separate folders within your git repo, you can then split that repo per folders, keeping the history for each folder.

See "Detach subdirectory into separate Git repository", using git filter-branch.

You can then add a commit in your main GitHub project repo, referencing the new repos as submodules (as I just illustrated in "Fork a Github repo into another repo as part of a larger project").

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250