4 ms·
Github is a central server, it is not distributed at all, things like issue tracking and the wiki won't work if the server goes down. Git on the otherhand, is d
by andrewchambers 11y ago
Github is a central server, it is not distributed at all, things like issue tracking and the wiki won't work if the server goes down. Git on the otherhand, is distributed because the central server is not required for most git operations to work if you have alternate methods of sending patches to eachother.
The fact that git works even when Github is down works in Github's favor really nicely and makes server outages less noticeable.
- sidcool 11y agoOh, that makes sense? Can we pull, push from different machines running git without a git server?
- andrewchambers 11y agoYes, if you or your friends make a local github repo public via ssh or http you can just do pulls from eachother directly.
- sidcool 11y agoThat's fantastic! I don't need GitHub or Atlassian Stash or GitLab then! Thanks, @andrewchambers
- andrewchambers 11y agoGit was originally designed to be used this way, github came later and designed it's product on top of git.
- andrewchambers 11y agoYou can test this pretty easily by just running ssh on your own machine and doing git clone ssh://sidcool@localhost:/home/sidcool/myrepo
- sidcool 11y agoDo I need to expose any SSH keys for that? (Sorry if a noob question, I am new to Mac (and Unix)). Thanks!
- andrewchambers 11y agoJust give it a test and see what errors you get. You can even play with just cloning local repositories without ssh. "git clone /path/to/localrepo newclone". You should be able to push and pull between local git repo's on your system too. It will help to learn about setting up remotes too. "git remote add otherfolder /path/to/other/repo" "git pull otherfolder"
- sidcool 11y agoSure, will give it a try. Thanks!
- deleted 11y ago[deleted]