On your local server (to be), try doing something like: git clone --mirror <url-to-us-server>
This will create a bare repository on the local server which is identical to the server in the US. Have your local developers do a "git clone" from this server. This will cause "git push" to update the local git repository on the new local "server". You must then have some method to do a git push from the local server back to the US server. I don't know what OS your local server will be running (Windows <yuck!> or Linux <yeah!>). But one way would be to have the local server do a periodic "git push" from the local repository back to the US server (using cron on Linux or "Task Scheduler" on Windows?). I am not sure, but you might be able to do the "git push" on you local server back to the US server in one of the git hooks. You will also need to do periodic "git pull" commands on your local server from the US server. One, very likely?, problem will be when someone updates the US server. When the India server tries to "git push" or "git pull", there could well be merge conflicts; which _someone_ in India would need to resolve. I will take it that the US server will remain the "authoritative" server. Also, there could be problems with people not getting timely updates between your India server and the US server. I will leave the details to the more knowledgeable people here, such as Konstantin or Thomas. On Thu, Apr 3, 2014 at 4:50 AM, Dhanesh Kumar <dhanesh.koli...@gmail.com>wrote: > Hi, > > > I have a GIT server setup in US. But am working from India. So accessing > of server is slow. So I wanted to setup a local GIT server in India where > in all the developers will check-in the code and do all the operations. And > that code will be synced to the US server. Anybody has any idea on how to > do this? Can anybody help me on this? > > > Regards > Dhanesh > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- There is nothing more pleasant than traveling and meeting new people! Genghis Khan Maranatha! <>< John McKown -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.