如何更改 Subclipse 中的用户凭据?
我正在使用 Subclipse(Eclipse 中的 Subversion 集成)。我现在想更改 subclipse 中的用户凭据。我该怎么做? 即使用另一个用户帐户登录 Subversion。
I am using Subclipse (Subversion integration in Eclipse). I now want to change the user credentials in subclipse. How do I do that?
That is to login into subversion using another user account.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
删除或重命名 Eclipse 配置文件夹中的 Eclipse“.keyring”文件。这是 Subclipse SVNKit 连接器缓存您的 SVN 凭据的地方。
[ECLIPSE INSTALLATION]\configuration\org.eclipse.core.runtime\.keyring
另一方面,如果您使用 JavaHL 连接器 - 或 SVN 命令 -行——然后他们的凭据存储在 Subversion 运行时配置文件夹中。删除或重命名凭据文件。
在 Windows 上:%APPDATA%\Subversion\auth
在 Linux 和 OSX 上:~/.subversion/auth
对于这个复杂性的问题,我们深表歉意,因为它应该是一个真正的版本控制系统。
:-(
Delete, or rename, the Eclipse '.keyring' file in Eclipse's configuration folder. This is where the Subclipse SVNKit connector caches your SVN credentials..
[ECLIPSE INSTALLATION]\configuration\org.eclipse.core.runtime\.keyring
If, on the other hand, you're using the JavaHL connector -- or SVN command-line -- then their credentials are stored in the Subversion runtime config folder. Delete or rename the credential file.
On Windows: %APPDATA%\Subversion\auth
On Linux and OSX: ~/.subversion/auth
Sorry about this pig of complexity, for what should be a real version-control system.
:-(
如果您想刷新现有凭据,请在 subversion wiki 中查看以下答案:
http://subclipse.tigris .org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8
如果您尝试在特定用户名下签出存储库,但该存储库在来宾帐户下是只读的,那么没有解决方案 - 您将有使用命令行工具进行结账。
即使 TortoiseSVN 也不支持这种用例。
If you want to flush the existing credentials, then look at this answer in the subversion wiki:
http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8
If you're trying to checkout a repository under a specific username, but the repository is available read-only under a guest account, then there is no solution - you will have to do the checkout using the command line tool.
Even TortoiseSVN does not support this use-case.
您可以在以下位置找到密码文件:
disk:\Documents and Settings\your_username\Application Data\Subversion\auth\svn.simple\
删除文件并刷新存储库。 Subclipse 将提示您输入存储库的用户名和密码。
You will find password files at:
disk:\Documents and Settings\your_username\Application Data\Subversion\auth\svn.simple\
Remove the files and refresh the repository. Subclipse will prompt you to enter username and password for your repository.
我在 Mac 上遇到了很多困难。后来找到了一个简单的解决办法。
1) 转到偏好设置
2) 转到“常规”并查找“安全”选项卡
3) 进入“内容”部分并找到“安全”选项卡。寻找存储库
4) 删除存储库。它会自动重新启动。
或者,您可以转到主目录下的 secure_storage 文件。在 VI 编辑器中打开它并删除相应存储库的行。我更喜欢 UI,因为它很简单。
(~/.eclipse/org.eclipse.equinox.security/secure_storage)
I struggled a lot on my Mac. Later found a simple solution.
1) Go to preference
2) Go to general and look for the security tab
3) Go into the content section & look for the repository
4) Delete the repository. It will automatically restart.
Alternatively, you can go to the secure_storage file under your home directory. Open it in the VI editor and remove the line for the corresponding repository. I would prefer the UI as it is simple.
(~/.eclipse/org.eclipse.equinox.security/secure_storage)
在 Mac OS X Lion 中,我发现它存储在 Apple 钥匙串中
In Mac OS X Lion, I found it stored in the Apple keychain
由于我正在使用 Subversive,我无法检查这一点,但它应该是这些内容行:
您也可以从 Subversion 客户端执行此操作,因为身份验证数据存储在
.svn
文件夹中。As I'm using Subversive, I can't check this, but it should be something along these lines:
You can also do it from your Subversion client, as the authentication data is stored in the
.svn
folders.在 SVN 视角中,右键单击存储库并选择“位置属性...”。在“常规”选项卡中编辑“身份验证”。
In SVN perspective, right click a repository and select 'Location Properties...'. Edit 'Authentication', in General tab.