| 2 | |
| 3 | To start: |
| 4 | {{{ |
| 5 | svn checkout https://svn.macports.org/repository/macports |
| 6 | }}} |
| 7 | becomes |
| 8 | {{{ |
| 9 | git clone git@github.com:macports/macports.git |
| 10 | }}} |
| 11 | When you clone you will have the entire repository. After you make a change, you can run {{{ git status }}} |
| 12 | and get something like this. |
| 13 | {{{ |
| 14 | On branch master |
| 15 | Your branch is up-to-date with 'origin/master'. |
| 16 | Changes not staged for commit: |
| 17 | (use "git add <file>..." to update what will be committed) |
| 18 | (use "git checkout -- <file>..." to discard changes in working directory) |
| 19 | |
| 20 | modified: aqua/iTerm2/Portfile |
| 21 | |
| 22 | no changes added to commit (use "git add" and/or "git commit -a") |
| 23 | }}} |
| 24 | What this tells me, is that I've changed a Portfile, but not done anything. |
| 25 | After that, you can add the files that you want to add to your commit using {{{git add aqua/iTerm2/Portfile}}}. |
| 26 | Now, {{{git status}}} will look like: |
| 27 | {{{ |
| 28 | On branch master |
| 29 | Your branch is up-to-date with 'origin/master'. |
| 30 | Changes to be committed: |
| 31 | (use "git reset HEAD <file>..." to unstage) |
| 32 | |
| 33 | modified: aqua/iTerm2/Portfile |
| 34 | }}} |
| 35 | Then run {{{git commit}}} and everything is set. On your machine. To push to github you then have to run {{{git push}}}. |