When working on a home project, I decided to keep one common git repository for two close areas of the project: hello and world, each being developed in its own directory:
$ ls -la
.git hello world
I now realize that this was a mistake and that I should have split it into two repositories, one in each directory.
Best case scenario: is there a mechanism which splits a repository in two, moving the changes relevant to files in hello and in world to their respective repositories (one in hello and one in world)
Less good case scenario: I care somehow less about the history in world so is there a way to move the whole repository into hello (it would also cover changes in world but never mind) so that I can restart a fresh repo in world?
Even less good case scenario (but who know): I will restart the repos from scratch and call it a lesson learned in thinking ahead more than I thought I should.