I'd like to combine two or more directories in one git repository. These repositories are logically linked but belong to different filesystem paths, e.g. /etc/httpd
and /var/named/chroot/var/named
both contain virtual host data which I'd like to manage as a whole, but I can't link them.
I've asked the git mailing list but had no luck.
Suggestions?
Update: I don't use this mechanism for deploying code, I just find it's a very convenient way of :
- tracking changes as they happen, so that I can very easily
git checkout
to a previous known stable point and eventgit bisect
configuration problems. - staging changes in a separate directory and then pulling from that directory when the time has come to perform the change.