0%

SVN_Commands

Got detail of repository

svn info

change svn branch within same repository

svn switch NEW_BRANCH_URL
svn cleanup

change location with different repository

svn switch --relocate CURRENT_URL NEW_URL

Note: Be careful when using the –relocate option. If you mistype the argument, you might end up creating nonsensical URLs within your working copy that render the whole workspace unusable and tricky to fix. It’s also important to understand exactly when one should or shouldn’t use –relocate. Here’s the rule of thumb:

  1. If the working copy needs to reflect a new directory within the repository, use just svn switch.

  2. If the working copy still reflects the same repository directory, but the location of the repository itself has changed, use svn switch with the –relocate option.