92 ms·
> My understanding of git is that there is a server, and users push/pull to the server. Git is a distributed VCS and so doesn't need a (centralised) server to
by rgoulter 8y ago
> My understanding of git is that there is a server, and users push/pull to the server.
Git is a distributed VCS and so doesn't need a (centralised) server to share code.
Sites like GitHub, GitLab or SourceHut let you host a git repository that you can push/pull from. It's a convenient way of sharing code, and collaborating with others.
But you can also apply changes to a repo using patches prepared by email.
> ....where there is no server at all and pushes and pulls are communicated completely via email.
I'd emphasise that changes to a repo can come from diffs or patches as well, not just pushes/pulls from another repository.
FWIW, Git book has details about how one might make use of patches received by email.
https://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a-Project#_patches_from_email https://git-scm.com/book/en/v2/Distributed-Git-Maintaining-a...
https://git-scm.com/book/en/v2/Appendix-C%3A-Git-Commands-Email https://git-scm.com/book/en/v2/Appendix-C%3A-Git-Commands-Em...