Git » History » Version 3
  Anchi Cheng, 09/14/2018 11:47 AM 
  
| 1 | 1 | Anchi Cheng | h1. Git | 
|---|---|---|---|
| 2 | |||
| 3 | h3. How to check out the code | ||
| 4 | |||
| 5 | As a developer, you should check out the code under your Appion/Leginon redmine username and your redmine password will be required when you push your commits | ||
| 6 | |||
| 7 | To get the development trunk (where new features are added): | ||
| 8 | <pre> | ||
| 9 | 3 | Anchi Cheng | git clone -b trunk http://your_redmine_username@emg.nysbc.org/git/myami myami/ | 
| 10 | 1 | Anchi Cheng | </pre> | 
| 11 | 3 | Anchi Cheng | |
| 12 | 1 | Anchi Cheng | |
| 13 | To get a release version (Bug fixes only please): | ||
| 14 | <pre> | ||
| 15 | 2 | Anchi Cheng | git clone -b myami-3.2 http://your_username@emg.nysbc.org/git/myami myami-3.2/ | 
| 16 | 1 | Anchi Cheng | </pre> | 
| 17 | |||
| 18 | See git documentation for more. | ||
| 19 | |||
| 20 | To update your clone with latest HEAD | ||
| 21 | <pre> | ||
| 22 | git pull | ||
| 23 | </pre> | ||
| 24 | |||
| 25 | To commit changes back, use: | ||
| 26 | <pre> | ||
| 27 | git add your_files | ||
| 28 | git commit | ||
| 29 | git push | ||
| 30 | </pre> | ||
| 31 | |||
| 32 | h3. How to create a new branch in git | ||
| 33 | |||
| 34 | git allows local branching. See its documentation. | ||
| 35 | |||
| 36 | *NEED TO FILL IN INFORMATION* |