Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the SVN URL to commit to?

I have somehow managed to change the remote URL of the SVN repository. Thus, Idea/svn now tries to commit my project to the root of the repository instead of the subfolder that I actually have write access to. How can I change this back? (The URL was originally correct and managed to commit correctly before)

like image 507
Erik Avatar asked Jun 23 '12 18:06

Erik


People also ask

How do I change my TortoiseSVN URL?

If you use TortoiseSVN, see this article for instructions. In case you need to change the url for your Git repository, you can do this by going to the root of your working copy, then you need to go to . git folder (please note that this folder is hidden), and modify remotes in your config file.

How do I change the working directory in svn?

If the working copy needs to reflect a new directory within the repository, use just svn switch. 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.

How change svn repository URL in Intellij?

Open the SVN Repositories tool window by choosing VCS | Browse VCS Repository | Browse Subversion Repository from the main menu. In the SVN Repositories tool window choose New | Repository Location from the context menu, or click the. button on the toolbar.


2 Answers

Repository URL is stored in the working copy metadata, IDEA doesn't change it automatically. You can change it manually from IntelliJ IDEA using the VCS | Subversion | Relocate menu.

It can also be done from the command line with svn relocate or Tortoise SVN Relocate... menu.

like image 181
CrazyCoder Avatar answered Oct 11 '22 12:10

CrazyCoder


If your project is not stored at the root of your repository (ex: my-svn-repo/my-project/trunk) and, for example, you renamed my-projectto my-awesome-project then the Relocate functionality wont work because it's related to a repository and not its sub-folders. In this case you will have to do a "Switch" using:

  • IntelliJ Idea : VCS > Update Project > Select the newly renamed folder or;
  • Tortoise SVN : Switch > Select the new folder
like image 24
rattek Avatar answered Oct 11 '22 12:10

rattek