Git-maus » History » Version 2
Dobbs, Adam, 21 December 2016 14:08
1 | 1 | Dobbs, Adam | h1. Git-maus |
---|---|---|---|
2 | |||
3 | Besides Launchpad and bazaar MAUS has beta level support for git and github. At the moment code updates for the trunk cannot be accepted from github however, only via Launchpad and bazaar. |
||
4 | |||
5 | 2 | Dobbs, Adam | h2. Obtaining MAUS |
6 | |||
7 | 1 | Dobbs, Adam | * Optional: set up an account on github and add an ssh key |
8 | * Clone the MAUS repository using: |
||
9 | <pre> |
||
10 | git clone git@github.com:mice-software/maus.git |
||
11 | </pre> |
||
12 | * Move into the @maus@ directory and check the branches present with: |
||
13 | <pre> |
||
14 | git branch -av |
||
15 | </pre> |
||
16 | The following branches should be present @master@ (the release branch), @merge@, @release-candidate@ |
||
17 | * Switch to the branch desired using e.g. for the release: |
||
18 | <pre> |
||
19 | git checkout master |
||
20 | </pre> |
||
21 | * Build MAUS as usual |
||
22 | 2 | Dobbs, Adam | |
23 | h2. Development |
||
24 | |||
25 | * Set up an account on github and add an ssh key |
||
26 | * Clone the MAUS repository as described above |
||
27 | * Fork the MAUS repository on github |
||
28 | ** Go to MAUS github page and login into github |
||
29 | ** Click "Fork" in the top right of the screen, selecting the option to fork to your own account |
||
30 | * Add your fork as a new remote in your local MAUS git repository |
||
31 | ** Copy the address of your new fork from github (something like @git@github.com:jbloggs/maus.git@, where jbloggs is your github username) |
||
32 | ** Return to the terminal and navigate to the MAUS git repository created earlier |
||
33 | ** Add your new forked repository using: |
||
34 | <pre> |
||
35 | git remote add my-fork git@github.com:jbloggs/maus.git |
||
36 | </pre> |
||
37 | where jbloggs is your github username. |
||
38 | * Fork the merge branch locally: |
||
39 | <pre> |
||
40 | git checkout merge |
||
41 | git checkout -b my-feature-branch |
||
42 | </pre> |
||
43 | * Push your local fork of the merge branch to your remote repository: |
||
44 | <pre> |
||
45 | git push my-fork my-feature-branch |
||
46 | </pre> |
||
47 | * Do some coding |
||
48 | * When ready add the files you have modified or created ready for committing: |
||
49 | <pre> |
||
50 | git add <files> |
||
51 | </pre> |
||
52 | * Commit your changes: |
||
53 | <pre> |
||
54 | git commit -m 'Some informative message about the changes' |
||
55 | </pre> |
||
56 | * |