Replicate GIT repository over multiple geolocations

git

We are facing to problems with speed of GIT central repository (cloning, pulling and pushing), which is at overseas.

Our idea is create clone of that repository in our local office.

Has anyone recommendation or experience with similar scenario?

Best Answer

Since git is distributed by nature this seems to be pretty straitforward. For example the following scenario is possible: a team works with a local repo in the office performing pulls and pushes as if it was a central repo and a cron script pushes from that repo to the "real" central repo. If there are other developers a dedicated person will have to perform pulls from the remote repo and resolve conflicts manually if they occur. If conflicts are unlikely you can automate pulls as well.

Related Topic