3 ms·
Github != Git There is a type mismatch. Github is a webservice with a RESTful API. Git is a tool for building distributed databases with an emphasis on availab
by brudgers 12y ago
Github != Git
There is a type mismatch. Github is a webservice with a RESTful API. Git is a tool for building distributed databases with an emphasis on availability rather than consistency.
If you have a project under Git source control and the only version is on Github then the project uses a remote repository but is not distributed. If you have a local repository in addition to one on Github then your project is distributed and in the event of a network partition (for example if Github goes down or your ISP goes offline) then the Git database is still available because you have access to the local repository.
Now suppose you have six developers on the project and each has a local repository and uses the repository on Github as a remote repository. If Github goes down, then the network is partitioned in a way that keeps the developers from seeing each other's work...though each developer still has their local repository available. The important point is that Git doesn't require a hub and spoke configuration. The six developers can each have access to the five repositories of the other developers plus Github. Though it could be a bit messy for systematic merging to achieve reasonable consistency, such a configuration would be robust in the face of partition.
A perhaps more practical possibility is to have a nearby Git server as a remote repository as well as Github and perhaps another server out on the interwebs...say on AWS...to provide redundancy against partition.
There are really two strong features of Github which Git facilitates. Internally, it provides a team with a remote backup. Externally, it provides an organization with content distribution. However Github's centralized nature [it even has the word "hub" in it] makes it something less than a content distribution network and when it goes down it serves to illuminate the reasons that large long running open source projects mirror their content.
- sidcool 12y agoThanks for the detailed explanation, @brudgers. It helped!