| 126 | === Forking and cloning and merging back === |
| 127 | |
| 128 | If you want to create a fork or clone of an existing module, use "svn copy", not e.g. "cp -r". Also the source should be repository URL rather than a working copy directory. E.g.: |
| 129 | |
| 130 | {{{ |
| 131 | cd raster |
| 132 | svn copy https://svn.osgeo.org/grass/grass/trunk/raster/r.watershed r.watershed.mfd |
| 133 | }}} |
| 134 | |
| 135 | This way, you can merge the changes since the fork back into the original. Or if you decide to replace the original with the forked version, the fork will have inherited the original's history when it was created. |
| 136 | |
| 137 | Note: grass-addons/ is part of the same repository as grass/, so it's possible to copy, rename, merge, etc between grass-addons/ and grass/. |
| 138 | |