This document is intended for developers with read/write access to the http://www.github.com/openlibrary/openlibrary repository. Other developers should submit changes by submitting a github pull request.
Proposed git workflow using github forks:
-
Fork http://github.com/openlibrary/openlibrary on github
-
You get http://github.com/{username}/openlibrary
-
$ git clone git@github.com:{username}/openlibrary.git
-
$ cd openlibrary
-
$ git add remote olgithub git@github.com:openlibary/openlibrary.git # Remote for openlibrary/openlibrary
-
Make some changes to file foo.py
-
$ git add foo.py
-
$ git commit -m "My commit message" # commits to local repository
-
$ git push origin master # push your local master to your github fork master
-
$ git pull git@github.com:openlibary/openlibrary.git master # pull in changes from openlibrary/master
-
Resolve any conflicts
-
$ git push # push to your github fork
-
$ git push olgithub master:master # push local master to github openlibrary/master
- $ git push olgithub master:production # push to local production to github openlibrary/production
History
- Created February 27, 2013
- 17 revisions
June 27, 2021 | Edited by Mek | Edited without comment. |
June 27, 2021 | Edited by Mek | Edited without comment. |
March 23, 2013 | Edited by Ben Companjen | git@github.com was auto-escaped as an email address, changed to https:// form. Added link to GitHub's forking help. |
March 23, 2013 | Edited by Ben Companjen | Added workflow for submitting pull requests |
February 27, 2013 | Edited by Ben Companjen | HTTPS URLs may not show up... |