70 | | * http://svnbook.red-bean.com/ |
71 | | |
| 71 | * Overview: http://svnbook.red-bean.com/ |
| 72 | * Help: |
| 73 | |
| 74 | {{{ |
| 75 | svn help |
| 76 | svn help up |
| 77 | svn help mv |
| 78 | ... |
| 79 | }}} |
| 80 | |
| 81 | * Update from SVN server (update states: A=Added; D=Deleted; U=Updated; C=Conflict; G=merGed): |
| 82 | |
| 83 | {{{ |
| 84 | svn up |
| 85 | }}} |
| 86 | |
| 87 | * Check for uncommitted local changes on your disk (If no output here, then everything is already uploaded to SVN): |
| 88 | |
| 89 | {{{ |
| 90 | svn status |
| 91 | }}} |
| 92 | |
| 93 | * Verify local changes before submitting: |
| 94 | |
| 95 | {{{ |
| 96 | svn diff |
| 97 | }}} |
| 98 | |
| 99 | Commit local changes to SVN server: |
| 100 | * submitting individual file(s): |
| 101 | |
| 102 | {{{ |
| 103 | svn ci -m "Some useful comment" file1 [file2 ...] |
| 104 | }}} |
| 105 | |
| 106 | * global commit of all changes (be careful here): |
| 107 | |
| 108 | {{{ |
| 109 | svn ci -m "Some useful comment" |
| 110 | }}} |
| 111 | |
| 112 | * Add new file to SVN repository: |
| 113 | |
| 114 | {{{ |
| 115 | svn add file |
| 116 | svn ci -m "Some useful comment" file |
| 117 | }}} |
| 118 | |
| 119 | * Add new directory to SVN repository: |
| 120 | |
| 121 | {{{ |
| 122 | svn add directory |
| 123 | svn ci -m "Some useful comment" directory |
| 124 | }}} |
| 125 | |
| 126 | * Remove file from SVN server (careful!): |
| 127 | |
| 128 | {{{ |
| 129 | svn rm file |
| 130 | svn ci -m "Some useful comment" file |
| 131 | }}} |
| 132 | |
| 133 | * Move file to another directory (this is the cool feature of SVN): |
| 134 | |
| 135 | {{{ |
| 136 | svn mv file ../some_dir/ |
| 137 | cd .. |
| 138 | svn ci -m "file moved ... reason ..." |
| 139 | }}} |