As it turns out, this question asked the same thing http://stackoverflow.com/questions/359424/detach-subdirectory-into-separate-git-repository
I decided to learn git and to keep my programming homework in a git repo. I think it was a good idea. Now I'm wondering about something:
I had a single git repo with a subdirectory for each assignment. I'm wondering if there's a sane way to make each of the subdirectories into its own git repo, retaining the history associated with those files. It seems like "git filter-branch --subirectory-filter" is part of the answer, but I'm not sure what to do.
EDIT
To clarify: My structure is like this
superdir .git subdir1 subdir2 subdir3
I'd like my structure to be more like this
superdir subdir1 .git subdir2 .git subdir3 .git
Can I do it?