Embraceware Blog. Communicate with Us

Updating a Subversion Repository URL

If the URL of your Subversion repository changes while you’re working on checked out code, you’ll find that you’re unable to commit your changes.

To solve this problem you need to update the repository URL for the checked out branch. You can do this by following these steps via Terminal (Mac) or Command Prompt (Windows).

  1. Change to the root directory of your checked source code.
  2. Run the following SVN command:
    svn switch --relocate OLDURL NEWURL

Now your branch will be pointing to the new repository URL and will allow you to commit and update.

Your Subversion URL may change for several reasons, such as a change in protocol from http:// to svn://, or change in domain name or IP address.

Leave a comment