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)
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.
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.
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.
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.
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-project
to 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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With