13 | | This will check out the whole history of the Project code with all the branches and tags, it will use about 150 MB of disk space and it may take a long time (while checking out it will use more disk space, until things get automatically compressed by {{{git gc}}}). |
| 15 | This will check out the whole history of the Project code with all the branches and tags, it will use about 150 MB of disk space and it '''may take a long time''' (while checking out it will use more disk space, until things get automatically compressed by {{{git gc}}}). |
| 16 | |
| 17 | {{{--stdlayout}}} tells git-svn to follow the common "trunk/branches/tags" layout. {{{--prefix=svn/}}} prefixes the remote branches with svn/, similar to the usual origin/, otherwise you would not be able to have a local branch with the same name as in svn. |
| 18 | |
| 19 | === via Adi's git repository === |
| 20 | |
| 21 | Alternatively you can clone from Adi's git repository on his Tardis account which is '''much faster'''. This requires SSH access on Tardis. |
| 22 | |
| 23 | {{{ |
| 24 | mkdir orxonox |
| 25 | cd orxonox |
| 26 | # we are not using git clone here, because we want to track some other references |
| 27 | git init |
| 28 | # omit the host name and the colon if you are doing this on a Tardis computer |
| 29 | git remote add origin tardis-c07.ee.ethz.ch:/home/adrfried/orxonox.git |
| 30 | git config --replace-all remote.origin.fetch '+refs/remotes/*:refs/remotes/*' |
| 31 | git fetch |
| 32 | # check out trunk as master |
| 33 | git checkout -b master svn/trunk |
| 34 | # initialize git-svn |
| 35 | git svn init --stdlayout --prefix=svn/ https://svn.orxonox.net/game/code |
| 36 | # get the latest changes from svn |
| 37 | git svn rebase |
| 38 | }}} |