So, I have two directory trees, one on my desktop computer and one on my laptop. They mostly contain text files. They are supposed to be equivalent, and I try to keep them vaguely in sync, manually. It’s an inefficient method, obviously, and lacks any kind of version control.
So, I want them to be a Git repository. The problem is, the two directories aren’t identical; each one has slightly drifted from the last time I synchronized things, and my synchronizations have always been sloppy and uneven. Also, neither one is a Git repositry. So this is what I’d like to do:
- Make a new Git repository, of which those two directories are clones, and
- Reconcile the differences between the two directories, so such that any files missing from one are copied to the other, and any files that conflict I can merge manually.
This isn’t a question about merging two Git repositories—neither directory is version-tracked at present—nor is it about moving one repository inside another. This is about merging two directories into one new Git repository, using the available Git tools. Thanks!