Java 如何更改 eclipse svn 存储库中的用户?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19275518/
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
How to change user in eclipse svn repository?
提问by Seyed Mohammad Chavoshian
I get eclipse from my friend and his eclipse use his user to communicate with SVN, commit or update. I want to change to my user but i can't. I read these topics, but they doesn't work for me.
我从我的朋友那里得到了 eclipse,他的 eclipse 使用他的用户与 SVN 进行通信,提交或更新。我想更改为我的用户,但我不能。我阅读了这些主题,但它们对我不起作用。
How to change credentials for SVN repository in Eclipse?
For example, my system doesn't have the svn.simple file which mentioned in this answer.
例如,我的系统没有这个答案中提到的 svn.simple 文件。
And this question:
还有这个问题:
When i want to use svn, it says that :
当我想使用 svn 时,它说:
'/home/chavosh' is not a working copy
What should i do?!
我该怎么办?!
采纳答案by Obie L
Ask your friend to change his/her password. The next time you try to access the repository, you will be asked to provide username or password.
请您的朋友更改他/她的密码。下次尝试访问存储库时,系统会要求您提供用户名或密码。
Alternatively, you could clear the cached credentials. There are two ways to do this depending on what client adapter, the plugin is using.
或者,您可以清除缓存的凭据。根据插件使用的客户端适配器,有两种方法可以做到这一点。
To find out which client adapter is used: Go to Windows->Preferences->Team->SVN. In the Client Interface section, check which adapter is used.
要找出使用的客户端适配器:转到 Windows->Preferences->Team->SVN。在客户端接口部分,检查使用的适配器。
If you are using JavaHL then you need to delete files from the svn.simple directory This directory is usually located in %AppData%\Subversion\auth. (Go to command promt and echo %AppData% to find out location of the AppData directory)
如果您使用的是 JavaHL,那么您需要从 svn.simple 目录中删除文件。该目录通常位于 %AppData%\Subversion\auth。(转到命令提示符并回显 %AppData% 以找出 AppData 目录的位置)
If you are using SVNKit then you need to delete the .keyring file from eclipse configuration directory. On my workstation the location of this .keyring file is \configuration\org.eclipse.core.runtime
如果您使用的是 SVNKit,那么您需要从 eclipse 配置目录中删除 .keyring 文件。在我的工作站上,这个 .keyring 文件的位置是 \configuration\org.eclipse.core.runtime
回答by karan
In windows :
在窗口中:
- open run type %APPDATA%\Subversion\auth\svn.simple
- this will open svn.simple folder
- you will find a file e.g. Big Alpha Numeric file
- Delete that file.
- restart eclipse.
- Try to edit file from projct and commit it
- you can see dialog asking userName password
- 打开运行类型 %APPDATA%\Subversion\auth\svn.simple
- 这将打开 svn.simple 文件夹
- 您会找到一个文件,例如 Big Alpha Numeric 文件
- 删除那个文件。
- 重启日食。
- 尝试从项目编辑文件并提交
- 您可以看到询问用户名密码的对话框
It worked for me.... ;)
它对我有用....;)
回答by Aravindh Gopi
回答by ayortanli
If you have tortoise client in your machine then removing current user from tortoise also removes it from eclipse. At least it works for me :) You can remove current user from tortise as described here: How to change users in TortoiseSVN
如果您的机器中有乌龟客户端,那么从乌龟中删除当前用户也会从 eclipse 中删除它。至少它对我有用:) 您可以按照此处所述从 Tortoise 中删除当前用户:如何在 TortoiseSVN 中更改用户