Search code examples
gitversion-controlrepositoryinfrastructure

Managing git across multiple sites


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:

  1. One central server for all global teams.
  2. One central server per geographic site. Set up some sort of automatic PUSH between servers to keep in sync.
  3. Hosted solution.

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.


Solution

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