| | 75 | === move (mv) === |
| | 76 | sometime called rename - as a rename is the same as a move. The command simplifies the rearranging of files in the svn tree. the syntax is ''svn mv <source files> <target-folder>'' |
| | 77 | |
| | 78 | this will move the files myFile.cc and myFile.h to myFolder |
| | 79 | {{{ |
| | 80 | svn mv myFile.cc myFile.h myFolder |
| | 81 | }}} |
| | 82 | |
| | 83 | this will rename the file myFiel.cc to myFile.cc - to correct a typo. please note the mv and rename are the same command |
| | 84 | {{{ |
| | 85 | svn rename myFiel.cc myfile.cc |
| | 86 | }}} |
| | 87 | |
| | 88 | === copy (cp) === |
| | 89 | a command which is rarely used on the local tree - why would someone need a file twice in the same tree? - but it is rather useful to create new branches. though it is normally done by the supervisors, it can be done by the students. |
| | 90 | |
| | 91 | this will create a new branch called test from the current version of the trunk |
| | 92 | {{{ |
| | 93 | svn cp https://svn.orxonox.net/orxonox/trunk https://svn.orxonox.net/orxonox/branches/test |
| | 94 | }}} |
| | 95 | |