How can I change the SVN URL in Visual Studio

亡梦爱人 提交于 2019-12-07 06:20:11

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!