如何在 Eclipse 中更改 SVN 存储库的凭据?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/914895/
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 18:44:39  来源:igfitidea点击:

How to change credentials for SVN repository in Eclipse?

eclipsesvnsubclipsesubversive

提问by Kirill Strizhak

I have Eclipse 3.4.2 installed on Windows with subclipse. Another developer added an SVN repository with his credentials and selected 'Save password'. Now every time I do anything with SVN his cached credentials are used. How can I change them to mine?

我在带有 subclipse 的 Windows 上安装了 Eclipse 3.4.2。另一位开发人员使用他的凭据添加了一个 SVN 存储库,并选择了“保存密码”。现在,每次我使用 SVN 执行任何操作时,都会使用他缓存的凭据。我怎样才能将它们更改为我的?

I have already checked the 'workspace/.metadata/.plugins/org.tigris...' folders, and could not find any way to reset those cached credentials.

我已经检查了“workspace/.metadata/.plugins/org.tigris...”文件夹,但找不到任何方法来重置这些缓存的凭据。

回答by Milen A. Radev

http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8:

http://subclipse.tigris.org/wiki/PluginFAQ#head-d507c29676491f4419997a76735feb6ef0aa8cf8

Usernames and passwords

Subclipse does not collect or store username and password credentials when defining a repository. This is because the JavaHL and SVNKit client adapters are intelligent enough to prompt you for this information when they need to -- including when your password has changed.

You can also allow the adapter to cache this information and a common question is how do you delete this cached information so that you can be prompted again? We have an open request to have an API added to JavaHL so that we could provide a UI to do this. Currently, you have to manually delete the cache. The location of the cache varies based on the client adapter used.

JavaHL caches the information in the same location as the command line client -- in the Subversion runtime configuration area. On Windows this is located in %APPDATA%\Subversion\auth. On Linux and OSX it is located in ~/.subversion/auth. Just find and delete the file with the cached information.

SVNKit caches information in the Eclipse keyring. By default this is a file named .keyring that is stored in the root of the Eclipse configuration folder. Both of these values can be overriden with command line options. To clear the cache, you have to delete the file. Eclipse will create a new empty keyring when you restart

用户名和密码

在定义存储库时,Subclipse 不会收集或存储用户名和密码凭据。这是因为 JavaHL 和 SVNKit 客户端适配器足够智能,可以在需要时提示您输入此信息——包括您的密码更改时。

您还可以允许适配器缓存此信息,一个常见问题是如何删除此缓存信息以便再次提示您?我们有一个开放请求,要求将 API 添加到 JavaHL,以便我们可以提供 UI 来执行此操作。目前,您必须手动删除缓存。缓存的位置因使用的客户端适配器而异。

JavaHL 将信息缓存在与命令行客户端相同的位置——Subversion 运行时配置区域。在 Windows 上,它位于 %APPDATA%\Subversion\auth。在 Linux 和 OSX 上,它位于 ~/.subversion/auth。只需查找并删除带有缓存信息的文件即可。

SVNKit 在 Eclipse 密钥环中缓存信息。默认情况下,这是一个名为 .keyring 的文件,存储在 Eclipse 配置文件夹的根目录中。这两个值都可以用命令行选项覆盖。要清除缓存,您必须删除该文件。Eclipse 将在您重新启动时创建一个新的空密钥环

回答by Koss

My wife suggested:

我的妻子建议:

  1. Open SVN Repositories View
  2. Open Location Properties...
  3. Show Credentials For: press [X] button
  4. Select user, write password, press [Finish]
  1. 打开 SVN 存储库视图
  2. 打开位置属性...
  3. 显示凭据:按 [X] 按钮
  4. 选择用户,输入密码,按【完成】

and all work!!!

和所有的工作!!!

回答by Expedient

Go to c:\Documents and Settings[username]\Application Data\subversion\auth\svn.simple

转到 c:\Documents and Settings[用户名]\Application Data\subversion\auth\svn.simple

and delete the hexadecimal file. Normally each file is associated with one repository

并删除十六进制文件。通常每个文件都与一个存储库相关联

回答by Alex Kr

On Mac OS X, go to folder /$HOME (/Users/{user home}/). You will see file '.eclipse_keyring'. Remove it. All saved credentials will be lost.

在 Mac OS X 上,转到文件夹 /$HOME (/Users/{user home}/)。您将看到文件“.eclipse_keyring”。去掉它。所有保存的凭据都将丢失。

回答by Synox

On any Windows Version delete the following folder:

在任何 Windows 版本上删除以下文件夹:

%APPDATA%\Subversion\auth

%APPDATA%\Subversion\auth

(You can copy&paste this to RUN/Explorer, and it will resolve the App-Data-Folder for you.)

(您可以将其复制并粘贴到 RUN/Explorer,它将为您解析 App-Data-Folder。)

On Linux and OSX it is located in

在 Linux 和 OSX 上,它位于

~/.subversion/auth

~/.subversion/auth

Source: http://www.techcrony.info/2008/03/26/admin/how-to-change-eclipse-svn-password/

来源:http: //www.techcrony.info/2008/03/26/admin/how-to-change-eclipse-svn-password/

回答by Boopathi Manickam

It's too simple to change username and password in Eclipse.

在 Eclipse 中更改用户名和密码太简单了。

Just follow the following steps:

只需按照以下步骤操作:

In your Eclipse,

在你的 Eclipse 中,

Goto Window -> Show View -> Other -> (Type as) SVN Repositories -> click that(SVN Repositories) -> Right Click SVN Repositories -> Location Properties -> General tab change the following details for credentials.,

转到窗口 -> 显示视图 -> 其他 ->(类型为)SVN 存储库 -> 单击那个(SVN 存储库)-> 右键单击​​ SVN 存储库 -> 位置属性 -> 常规选项卡更改凭据的以下详细信息。,

that's it.

就是这样。

回答by keithstric

On Windows 7, go to C:\Users\%User_Name%\AppData\Roaming\Subversion and remove the auth directory. Just be aware if you are connected to more than 1 SVN server that this will remove the authentication for all of the SVN servers you have configured. If you want to reset just a single server:

在 Windows 7 上,转到 C:\Users\%User_Name%\AppData\Roaming\Subversion 并删除 auth 目录。请注意,如果您连接到 1 个以上的 SVN 服务器,这将删除您已配置的所有 SVN 服务器的身份验证。如果您只想重置单个服务器:

Inside the auth directory you should see a folder called svn.simple. Open each of those files with a text editor to determine which one to remove and then remove just that single file.

在 auth 目录中,您应该会看到一个名为 svn.simple 的文件夹。使用文本编辑器打开每个文件以确定要删除哪个文件,然后仅删除该单个文件。

回答by suyash

Very simple step to follow: Eclipse: Window ----> Preferences -----> SVN -----> SVN Interface ----->Select SVNKit (pure Java)

非常简单的步骤:Eclipse: Window ----> Preferences -----> SVN -----> SVN Interface ----->Select SVNKit (pure Java)

回答by karan

In windows :

在窗口中:

  1. Open run type %APPDATA%\Subversion\auth\svn.simple
  2. This will open svn.simplefolder
  3. you will find a file e.g. Big Alpha Numeric file
  4. Delete that file.
  5. Restart eclipse.
  6. Try to edit file from project and commit it
  7. you can see dialog asking userName password
  1. 开放式运行 %APPDATA%\Subversion\auth\svn.simple
  2. 这将打开svn.simple文件夹
  3. 您会找到一个文件,例如 Big Alpha Numeric 文件
  4. 删除那个文件。
  5. 重启日食。
  6. 尝试从项目编辑文件并提交
  7. 您可以看到询问用户名密码的对话框

It worked for me.... ;)

它对我有用....;)

回答by emallove

I was able unable to locate the svn.simplefile, but was able to change credentials using the following three steps:

我无法找到该svn.simple文件,但能够使用以下三个步骤更改凭据:

Checkout project from SVN

从 SVN 结帐项目

enter image description here

在此处输入图片说明

Select the repository you need to change the credentials on (note: you will not perform an checkout, but this will bring you to the screen to enter a username/password combination).

选择您需要更改凭据的存储库(注意:您不会执行结帐,但这会将您带到屏幕以输入用户名/密码组合)。

enter image description here

在此处输入图片说明

Finally, enter the new username and password credentials:

最后,输入新的用户名和密码凭据:

enter image description here

在此处输入图片说明

It's a bit confusing, because you begin the process of initializing a new project, but you're only resetting the repository credentials.

这有点令人困惑,因为您开始初始化新项目的过程,但您只是重置存储库凭据。