3 ms·
Oh, that makes sense? Can we pull, push from different machines running git without a git server?
by sidcool 12y ago
Oh, that makes sense? Can we pull, push from different machines running git without a git server?
- andrewchambers 12y 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 12y agoThat's fantastic! I don't need GitHub or Atlassian Stash or GitLab then! Thanks, @andrewchambers
- andrewchambers 12y agoGit was originally designed to be used this way, github came later and designed it's product on top of git.
- andrewchambers 12y 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 12y agoDo I need to expose any SSH keys for that? (Sorry if a noob question, I am new to Mac (and Unix)). Thanks!
- andrewchambers 12y 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 12y agoSure, will give it a try. Thanks!
- deleted 12y ago[deleted]