Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a "central" git repo containing all sorts of conf files.

We have 5 servers that have the repo cloned.

I've cloned the repo on my local machine.

I want to be able to make changes locally, push to the central repo and then have it automatically push down to the repos on the servers.

Iow, make a change locally, commit, push and the change is visible everywhere else. Any ideas?

share|improve this question

1 Answer 1

You can configure the execution of a script that connect to every server and issue a git pull on the post-update hook in the central repository.

Or you can simply use cron to do a git pull every 15 minutes on all the servers.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.