Difference between revisions of "Instructions for Working with GlueX Git Repositories"
From GlueXWiki
(Created page with "==The Workflow== # create local repository #* git clone https:/github.com/jeffersonlab/sim-recon # create a local topic branch #* git branch my\_work # move to the new topic...") |
(No difference)
|
Revision as of 10:52, 14 July 2015
The Workflow
- create local repository
- git clone https:/github.com/jeffersonlab/sim-recon
- create a local topic branch
- git branch my\_work
- move to the new topic branch
- git checkout my\_work
- ... work on topic branch, make changes, add them, commit them...
- push local topic branch to public topic branch
- git push origin my\_work:new\_bug\_fix
- creates branch "new\_bug\_fix" on public repository
- issue pull request
- go to the GitHub site and log in
- navigate to the branch, click on "pull request"
- creates action item on GitHub
- requests that changes on branch "new\_bug\_fix" be merged onto master branch on public repository
- someone else acts on pull request on GitHub
- go to the GitHub site and log in
- navigate to open pull requests
- merge in changes
Notes on this Workflow
- Everyone needs an account on GitHub.
- Anyone can update the master branch.
- Changes should go onto topic branches, but enforced only administratively.