Changes between Version 3 and Version 4 of code/tools/SVN
- Timestamp:
- Feb 17, 2008, 11:47:12 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/tools/SVN
v3 v4 8 8 svn add myFile.cc myFile.h 9 9 svn rm trash-folder 10 svn resolved somefile.cc 10 11 svn cp https://svn.orxonox.net/orxonox/trunk https://svn.orxonox.net/orxonox/branches/test 11 12 svn diff 12 svn resolve somefile.cc13 13 svn revert 14 14 }}} … … 19 19 the checkout command is used to create a local copy of a svn subtree on the local computer. 20 20 21 the syntax used is ''svn co <remote-path> <local-path>'', if <local-path> is omitted the last remote folder will be used as <local-path>.21 the syntax used is ''svn co -r <revision> <remote-path> <local-path>'', if -r <revision> is omitted, the HEAD revision is assumed, which is also the newest one, if <local-path> is omitted the last remote folder will be used as <local-path>. 22 22 23 23 This will create a folder orxonox-trunk with the contents of the trunk … … 26 26 }}} 27 27 28 This will create a folder called test, with the content of the test branch .28 This will create a folder called test, with the content of the test branch at revision 200. 29 29 {{{ 30 svn co https://svn.orxonox.net/orxonox/branches/test30 svn co -r 200 https://svn.orxonox.net/orxonox/branches/test 31 31 }}} 32 32 … … 44 44 }}} 45 45 46 Updates may cause conflicts if the remote and local file has been changed in the same place. to resolve a conflict see [wiki:SVN#resolve here].46 Updates may cause conflicts if the remote and local file has been changed in the same place. to resolve a conflict see [wiki:SVN#resolved here]. 47 47 48 48 === checkin (ci) === … … 54 54 }}} 55 55 56 A checkin is only possible if the local version is up-to-date. if it isn't you will get an error, and the commit will fail. the solution then is to do an [wiki:SVN#update (up)update].56 A checkin is only possible if the local version is up-to-date. if it isn't you will get an error, and the commit will fail. the solution then is to do an [wiki:SVN#updateup update]. 57 57 58 === add === 59 adding a new file to the local svn copy, that it get upload with the next commit. the syntax is ''svn add <file>'' 60 61 this will add the files myFile.cc and myFile.h in the folder myFolder to the svn 62 {{{ 63 svn add myFolder/myFile.cc myFolder/myFile.h 64 }}} 65 66 === remove (rm) === 67 also called delete, which deletes an item from the svn tree. please note that this also removed the file/folder from the local harddrive. the syntax is ''svn rm <file/folder>''. you still need to commit it to the server. 68 69 this will remove the file myOldFile.cc from the svn tree 70 {{{ 71 svn rm myOldFile.cc 72 }}} 73 74 === resolved === 75 if a conflict arises - this normally happens if someone change a file on the server (committed it) while you were doing changes in the same place. This command '''does not solve''' the conflict, but it removes the other unnecessary files. 76 77 this will resolve the conflict in in myConflictFile.cc, and make the copy committable again. 78 {{{ 79 svn resolved myConflictFile.cc 80 }}} 81