How to change user in eclipse svn repository?

谁都会走 提交于 2020-02-12 22:20:12

问题


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.

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.

And this question:

SVN change username

When i want to use svn, it says that :

'/home/chavosh' is not a working copy

What should i do?!


回答1:


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.

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)

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




回答2:


In windows :

  1. open run type %APPDATA%\Subversion\auth\svn.simple
  2. this will open svn.simple folder
  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 projct and commit it
  7. you can see dialog asking userName password

It worked for me.... ;)




回答3:


1. Goto window->show view->other

2.Select SVN Repositories

4.Right click the repository that you want to change the users and click Location properties

5. Finally change the username and password and click Finish




回答4:


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




回答5:


Go to:

Window -> Preferences -> General -> Security -> Secure Storage

Then in Contents tab expand [Default Secure Storage] and SVN. Now delete these values.

Example

Tested in Eclipse Luna.



来源:https://stackoverflow.com/questions/19275518/how-to-change-user-in-eclipse-svn-repository

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!