I have checked out code from a svn repository and started making changes. But now the repository has been renamed. How do I map my local repository to the newly named source repository and then run svn commands on it.
If you don't want history, you can use svn export to get a clean folder without the . svn folders and then svn import into your other repository. With history, you would need to use the svnadmin dump . You would then use svndumpfilter to filter for only the parts or paths you want to use before using svnadmin load .
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 you are using TortoiseSVN (and I'm sure there's a command line tool for this as well, but I'm using Tortoise), you can simply right-click on your existing working copy folder and select TortoiseSVN –> Relocate. In the dialog that comes up, enter the new location of the repository, and click OK.
What is SVN? Apache Subversion, also known as Subversion, SVN represents the most popular centralized version control system on the market. With a centralized system, all files and historical data are stored on a central server. Developers can commit their changes directly to that central server repository.
For Subversion 1.6 or lower, use svn switch --relocate
For Subversion 1.7 or later, use svn relocate
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