如何在 Eclipse 中更改 SVN 存储库的凭据? [英] How to change credentials for SVN repository in Eclipse?

查看:42
本文介绍了如何在 Eclipse 中更改 SVN 存储库的凭据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有 subclipse 的 Windows 上安装了 Eclipse 3.4.2.另一位开发人员使用他的凭据添加了一个 SVN 存储库,并选择了保存密码".现在每次我用 SVN 做任何事情时,都会使用他缓存的凭据.如何将它们更改为我的?

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?

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

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

推荐答案

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

用户名和密码

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

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.

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

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 将信息缓存在与命令行客户端相同的位置——Subversion 运行时配置区域.在 Windows 上,它位于 %APPDATA%Subversionauth.在 Linux 和 OSX 上,它位于 ~/.subversion/auth.只需找到并删除带有缓存信息的文件即可.

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%Subversionauth. On Linux and OSX it is located in ~/.subversion/auth. Just find and delete the file with the cached information.

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

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

这篇关于如何在 Eclipse 中更改 SVN 存储库的凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆