I have many files in my home directory under git version control.
My emacs setup, zsh source files, PhD thesis, etc.
It's all in one huge git repo at the root of the home directory. (Of course the files themselves are in many different directories.)
I'm considering using
filter-branch to split the repo up so my thesis commits aren't polluted with my
.emacs commits, etc.
Generally, is this a good idea? I don't want to lose any history.
Will I have to copy my
.gitconfig file into each directory that gains a repo?
And, if I accidentally
git add foo.txt in a directory before
git init, will it be staged in the first repo git finds as it wanders up my directory tree? Or can this be prevented?