问题
In my office, I have a working repository, where I am able to work on my laptop to modify files and commit them to that repository. I am using a local URL for this, which points directly to the PC containing the repository. Additionally, we published this repository for external users as well, so they are able to make changes to the repository without being on our local network. All is working fine there. However, my laptop which normally using the local connection, now needs to be moved to one of those external locations. I would like to be able to change the URL in my solution in Visual Studio, without having to 'create project from SVN'
回答1:
Navigate to View -> Pending Changes.
You can see the Pending Changes prompt at the bottom.Then Select the drop down on the top right and select other option. Provide the new URL and click on OK button.
Done!
回答2:
Whay you need is relocate
(NOT switch) to tell your working copy that the URL of the repository changed (from your local URL to the external URL).
In the thread Collin linked to is most likely the correct answer: How to switch subversion repository in Visual Studio using AnkhSVN?
回答3:
How to switch subversion repository in Visual Studio using AnkhSVN?
来源:https://stackoverflow.com/questions/5049690/how-can-i-change-the-svn-url-in-visual-studio