Creating a branch in Subversion
- March 17th, 2010
- By Wayne Khan
- Write comment
From the root directory of your repository, issue:
$ svn cp trunk/* branches/path/to/your/branch
$ svn cp trunk/.htaccess branches/path/to/your/branch
$ svn cp trunk/.*.sh branches/path/to/your/branch
Doing something like:
$ svn cp trunk/ branches/path/to/your/branch
Which is much easier to understand does not work as I expect; due to the extra “trunk/” suffix; i.e. “branches/path/to/your/branch/trunk”.