How to change credentials for SVN repository in Eclipse?

后端 未结 19 746
陌清茗
陌清茗 2020-12-12 10:39

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

相关标签:
19条回答
  • 2020-12-12 10:55

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

    0 讨论(0)
  • 2020-12-12 10:57

    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

    0 讨论(0)
  • 2020-12-12 10:57

    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]

    and all work!!!

    0 讨论(0)
  • 2020-12-12 10:58

    I'm using svn+ssh protocol to access SVN. What I had to do to fix a similar issue, was to open Putty and reconfigure it so that it did not have wrong_user_name@myserver but correct_user_name@myserver in the saved sessions.

    0 讨论(0)
  • 2020-12-12 10:59

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

    Checkout project from 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.

    0 讨论(0)
  • 2020-12-12 10:59

    I deleted file inside svn.simple directory at below path on windows machine (Windows 7):

    C:\Users\[user_name]\AppData\Roaming\Subversion\auth
    

    Problem solved.

    0 讨论(0)
提交回复
热议问题