Hacker News new | ask | show | jobs
by YetAnotherNick 2242 days ago
What is distributed here? If github is down no one can see what you changed, not even the build servers. Git is distributed in the sense that every client has complete history, but not in the sense that my laptop can act as replacement of github(like torrent).
2 comments

Git supports lots of protocols for sharing your changes - even email!
Diffs can be shared over mail, right. Can I do a `git pull` via mail?
Yes:

https://git-send-email.io

You can also do a "request pull" over email, which if it sounds confusing it's because GitHub wanted it to:

https://www.git-scm.com/docs/git-request-pull

You can't over mail. But each of you could run your own Git server if you wanted to be able to pull.
Git is distributed in the sense that you have a copy of the source code and can make commits. Compare this to what would happen if an SVN server went down.
Even in SVN there is a copy of the current code everywhere. Just that it does not support having multiple repos and all which I don't think many people uses in git. Most orgs only have one remote repo setup(I would love to be wrong in this)