- create your local git repo. - create account+project on github - copy your github url (see project page) - git remote add origin <github-url> - git push origin master copies your local changes - git pull origin master:master pulls from github
Setup for another directory/user: - git clone <github-url> - git push - git pull
Note: the second user lives in origin, whereas your original lives in master and you push to origin. I’m still trying to figure stuff out. Git resources: http://www.gnome.org/~federico/misc/git-cheat-sheet.txt
comment
This entry was posted on Thursday, February 26th, 2009 and is filed under Happy Hacking. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Get started with github
- create your local git repo.
- create account+project on github
- copy your github url (see project page)
- git remote add origin <github-url>
- git push origin master
copies your local changes
- git pull origin master:master
pulls from github
Setup for another directory/user:
- git clone <github-url>
- git push
- git pull
Note: the second user lives in origin, whereas your original lives in master and you push to origin.
I’m still trying to figure stuff out. Git resources: http://www.gnome.org/~federico/misc/git-cheat-sheet.txt
comment
This entry was posted on Thursday, February 26th, 2009 and is filed under Happy Hacking. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.