How to set username/password to connect to Subversion repository in AnkhSVN in Visual Studio?

南楼画角 提交于 2019-12-10 14:51:32

问题


I just installed AnkhSVN. I'm using Visual Studio 2010.

There is an existing Subversion repository on a server that I access via SSL (ex: https://svn.myserver.com/myrepository).

In Visual Studio, I set my source control to "AnkhSVN - Subversion support to Visual Studio" in the tools/options menu.

In the "Add to Subversion" dialog, when I try to add my solution in the repository, I enter https://svn.myserver.com/myrepository in the "Repository URL" field. Then, https://svn.myserver.com appears under "Subversion Repositories". When I select it, the "Create Folder..." button stays disabled and when I click OK, I get the message:

Please select a valid location in the repository to add to.

I want to add my solution in https://svn.myserver.com/myrepository/myfolder but it doesn't seem to be possible.

What am I missing?

Also: In Repository Explorer I add the url https://svn.myserver.com/myrepository and nothing happens. I cannot browse that repository. It looks like I cannot connect to the server.

I wonder why there's no popup asking me for authentication.

Does anybody know where to set username / password?


回答1:


Solutions:

  • You can go to Tools - Options - Source Control - Subversion Environment - Authentication Cache to clear the cached username/passwords

or

  • The authentication data is saved to the following directories

%APPDATA%\Subversion\auth\svn.ssl.server %APPDATA%\Subversion\auth\svn.simple

Deleting all the files inside these folders will solve the problem. After deleting these files AnkhSVN will prompt you for username and password once again.

or

  • From the file system right click->tortoise->settings->saved data->Authentication Data-Clear.

References:

http://www.nerdpad.com/how-to/clearing-ankhsvn-saved-username-password-authentication-data

How to change SVN authentication details in AnkhSVN in Visual Studio 2010?

TortoiseSVN not asking for authentication?




回答2:


Try to add the solution foldwr to repository(with the whole solution).There you will set the username and password. When opening Visual Studio, the ankhsvn should manage it automatically(with no credentials).



来源:https://stackoverflow.com/questions/10358297/how-to-set-username-password-to-connect-to-subversion-repository-in-ankhsvn-in-v

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