3 ms·
With git, "push/pull from one place" is merely a usage/behavior convention by collaborators. Nothing about git requires push or pull, and nothing about git requ
by PaulDavisThe1st 6y ago
With git, "push/pull from one place" is merely a usage/behavior convention by collaborators. Nothing about git requires push or pull, and nothing about git requires that you only use a single "canonical" repository.
The key point about git is that every copy of the repository is semantically equivalent to every other copy. The one on your local machine is a fully fledged repo just like the one on your colleague's machine and just like the one on github or wherever else a "canonical repo" is hosted.
This is utterly different from older systems like svn or perforce, where the "central server" is semantically distinct from whatever you have on your machine.
At any time, you could decide that a different instance of the repo is canonical (shared push/pull), and that's what make git decentralized.