从 Eclipse 中删除? SVN 用户名和密码在 Windows 7 中不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8342005/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 20:44:30  来源:igfitidea点击:

Removing?SVN username and password from Eclipse does not work in Windows 7

eclipsesvnwindows-7

提问by Kanishka Panamaldeniya

I'm using Eclipse (Helios) 32Bit in Windows 7, with Subclipse 1.6.x.

我在 Windows 7 中使用 Eclipse (Helios) 32Bit,以及 Subclipse 1.6.x。

I want to reset my SVN username and password. On the internet, I found the following steps:

我想重置我的 SVN 用户名和密码。在网上,我找到了以下步骤:

  • Close Eclipse or RAD/WSAD
  • Navigate to the following directory replacing {User} with your Windows logon id.
  • C:\Documents and Settings{User}\Application Data\Subversion
  • Delete all files under the Subversion directory
  • Open Eclipse or RAD/WSAD
  • Synchronize with your SVN repository
  • If prompted click Accept Permanently to trust the certificate
  • When prompted enter your Subverion user id and password
  • 关闭 Eclipse 或 RAD/WSAD
  • 导航到以下目录,将 {User} 替换为您的 Windows 登录 ID。
  • C:\Documents and Settings{用户}\Application Data\Subversion
  • 删除Subversion目录下的所有文件
  • 打开 Eclipse 或 RAD/WSAD
  • 与您的 SVN 存储库同步
  • 如果出现提示,请单击永久接受以信任证书
  • 出现提示时输入您的 Subverion 用户 ID 和密码

These steps aren't working. When I open Eclipse again and synchronize with the repository, it doesn't ask for a username or password.

这些步骤不起作用。当我再次打开 Eclipse 并与存储库同步时,它不会要求输入用户名或密码。



Other information:

其他信息:

  • I tried deleting the files in the Subversiondirectory, but when synchronizing, Eclipse creates a folder there again.

  • In another post I read about "deleting the .keyringfile", but I couldn't find the location of this file.

  • In the Secure Storage contents tab, I only have this:

  • 我尝试删除目录中的Subversion文件,但是在同步时,Eclipse 又在那里创建了一个文件夹。

  • 在另一篇文章中,我读到了有关“删除.keyring文件”的内容,但找不到此文件的位置。

  • 在安全存储内容选项卡中,我只有这个:

回答by mliebelt

There are different possibilities where passwords could be stored in eclipse and subversion. The keyring file is stored in an installation of eclipse I have used with subclipse at <root>/eclipse/configuration/org.eclipse.core.runtime/.keyring. You should at least look if it exists there. The location of that file may be overriden by command line parameters, but that you would know. See the article "How to change Eclipse SVN plugin password"for some more information.

密码可以存储在 eclipse 和 subversion 中有不同的可能性。密钥环文件存储在我与 subclipse 一起使用的 eclipse 安装中<root>/eclipse/configuration/org.eclipse.core.runtime/.keyring。你至少应该看看它是否存在。该文件的位置可能会被命令行参数覆盖,但您应该知道。有关更多信息,请参阅文章“如何更改 Eclipse SVN 插件密码”

For another option, you could check:

对于另一种选择,您可以检查:

  1. Go into the Preferences by Windows > Preferences.
  2. Select there General > Security > Secure Storage.
  3. Go to the tab Contentsand expand there the entry SVN.
  1. 按 进入首选项Windows > Preferences
  2. 选择那里General > Security > Secure Storage
  3. 转到选项卡Contents并在那里展开条目SVN

enter image description here

在此处输入图片说明

You should see now a local cache of SVN related things that SVN can use to answer the password question for the server. Delete the entries that is cached for the location you want to login as a different user. Ensure that your subversion directory is cleaned as well:

您现在应该看到 SVN 相关内容的本地缓存,SVN 可以使用它来回答服务器的密码问题。删除为要以其他用户身份登录的位置缓存的条目。确保您的 subversion 目录也已清理:

  • Windows XP: C:\Documents and Settings\{User}\Application Data\Subversion
  • Windows 7: C:\Users\{User}\AppData\Roaming\Subversion\
  • 视窗 XP: C:\Documents and Settings\{User}\Application Data\Subversion
  • Windows 7的: C:\Users\{User}\AppData\Roaming\Subversion\

And delete the .keyringfile as well, if you find it.

.keyring如果找到该文件,也将其删除。

回答by Géza

I've found the fil containig my SVN credentials at ...\Eclipse\config\auth\svn.simple\

我在 ...\Eclipse\config\auth\svn.simple\ 找到了包含我的 SVN 凭据的文件

回答by Harsh Chiki

https://casecomplete.zendesk.com/hc/en-us/articles/200685197-Resetting-stored-Subversion-credentials

https://casecomplete.zendesk.com/hc/en-us/articles/200685197-Resetting-stored-Subversion-credentials

This worked for me. deleting all the files, in the svn.simple directory (for windows 7) deletes all the stored passwords. One will have to set them, while commiting content again, but that is obviously through the usual means.

这对我有用。删除所有文件,在 svn.simple 目录(对于 Windows 7)删除所有存储的密码。必须设置它们,同时再次提交内容,但这显然是通过通常的方式。