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 :
git checkout
to a previous known stable point and event git bisect
configuration problems.The best way to do this is to write a script that deploys the files, and use Git to manage the source for the project. If you have more sophisticated needs then management tools like Puppet integrate with version control.
Direct Git checkouts are not a good way to do deployment - it was not intended for this. You can avoid the issue of having repositories on target systems by using the export facility, but by design Git does not store full permission/ACL data for files.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With