Actions
Git-maus » History » Revision 28
« Previous |
Revision 28/44
(diff)
| Next »
Dobbs, Adam, 24 February 2017 19:56
Git-maus¶
Besides Launchpad and bazaar MAUS has beta level support for git andgithub. At the moment code updates for the trunk cannot be accepted from github however, only via Launchpad and bazaar.
Development¶
Overview¶
This following section will guide you to:
- Create an account on GitHub
- Add an ssh key to your account
- Fork the MAUS repository on github into your personal github account
- Make a local copy on your computer of your fork of MAUS
- Create a new development branch within this repository locally
- Make and changes and commit these changes to this branch
- Push your development branch and these changes to your github MAUS fork
- Create a Jenkins test server job for your development branch
- Propose merging your changes back to the MAUS trunk via github
Step-by-step guide¶
- Create an account on github
- Add an ssh key to your account
- Fork the MAUS repository on github into your personal github account
- Go to MAUS github page and login into github
- Click "Fork" in the top right of the screen, selecting the option to fork to your own account
- Select your own account from the options that appear for where to fork MAUS
- Make a local copy (clone) on your computer of your fork of MAUS
- Copy the address of your new fork from github (something like
git@github.com:jbloggs/maus.git
, where jbloggs is your github username) - Clone your repository:
git clone git@github.com:jbloggs/maus.git
where jbloggs is your github username.
- Copy the address of your new fork from github (something like
- Create a new development branch within this repository locally
- cd into the directory created by the clone command (maus by default)
- Take a look at the branches present with:
git branch -av
- Pull down the merge branch from your remote github repository into the new local repository:
git checkout merge
- Create a new development branch in the local repository by forking the merge branch:
git checkout -b my-feature-branch
- Observe the new state of your local repository with:
git branch -av
- Make changes and commit these changes to the local development branch
- Edit some files, creating some wonderful new feature for the benefit of mousekind
- Stage the changes:
git add AlteredFile1.cc AlteredFile2.cc
- Commit the changes:
git commit -m 'My excellent new feature, closing issue ###'
- Push your development branch and these changes to your github MAUS fork
git push origin my-feature-branch
- Create a Jenkins test server job for your development branch
- The MAUS test server can be found at: http://test.mice.rl.ac.uk
- Either email the head of MAUS requesting a test branch and giving your repository url and development branch id, or go the test server, create a new item, copying an existing git-based test job, and edit the configuration with your repository url and branch name
- # Propose merging your changes back to the MAUS trunk via github
- Run the Jenkins test server job on your development branch
- When Jenkins has passed (and not before), return to your repository page on github and select
my-feature-branch
from the drop-down menu on the left - Click the "Pull request" button to propose merging into the trunk
- Make sure your branch is comfortable for merging - if not, edit some more until it is, commit and push, then try again
Updated by Dobbs, Adam over 6 years ago · 28 revisions