Reputation: 20060
The scenario we have is that our organization is located in a few geographical locations.
I would like to setup a git central server so each of the distributed teams can push their changes into it and share with the rest of the teams.
I am wondering what are the best options of doing such a thing.
The current 2 options i can think of are:
While #3 is currently not an option for our organization AFAIK, are there any other options of doing so? What is the best option?
I would assume there are already some guidelines and best practices to solve this particular issue.
Upvotes: 2
Views: 144
Reputation: 13424
My first response would be to simply setup a github 'organization' and manage your organizations private repositories through it. There are a lot of benefits -- including backup of the data being taken care of, having people who know git extremely well managing the infrastructure, etc.
But if the company can't do that for some reason, I'd recommend having a single, global repository if at all possible.
Each person can then simply clone the central repository and pull/push changes to it. Adding additional repositories adds complexities and risks like:
There's no real benefit to having regional servers either, as far as I can tell.
Upvotes: 1
Reputation: 72855
Do you really need multiple "central servers"? Why not have all the teams work with a single repository. Much of gits work is done offline and even the parts that have to talk to the network are quite optimised. I don't think you'll have trouble with having just one central repository.
Upvotes: 3