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 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?

share|improve this question
    
...push and clone less? The great thing about git is you can do all your work and commits locally, and then push/pull at your leisure later, so rather than pushing every commit just push once per day. Your general idea of using a local clone works though (see Alex's answer, and note that you can probable use pre/post receive hooks to make things closer to real-time...) –  voretaq7 Nov 11 '12 at 0:58
add comment

1 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.

share|improve this answer
add comment

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.