SVN change username

前端 未结 11 1388
半阙折子戏
半阙折子戏 2020-12-22 19:09

I found a lot of examples on how to change the username for specific revisions and so on.

But what I need is this: I did a checkout with the authentication credentia

相关标签:
11条回答
  • 2020-12-22 19:31

    for Win10 you should remove this folder and close/open your IDE

    C:\Users\User\AppData\Roaming\Subversion\auth

    , also in my projects no ".subversion" folders, only ".svn"

    0 讨论(0)
  • 2020-12-22 19:37

    If your protocol is http and you are using Subversion 1.7, you can switch the user at anytime by simply using the global --username option on any command.

    When Ingo's method didn't work for me, this was what I found that worked.

    0 讨论(0)
  • 2020-12-22 19:38

    I believe you could create you own branch (using your own credential) from the same trunk as your workmate's branch, merge from your workmate's branch to your working copy and then merge from your branch. All future commit should be marked as coming from you.

    0 讨论(0)
  • 2020-12-22 19:42

    The command, that can be executed:

    svn up --username newUsername
    

    Works perfectly ;)

    P.S. Just a hint: "--username" option can be executed on any "svn" command, not just update.

    0 讨论(0)
  • 2020-12-22 19:43

    Also, for those who happened to realize too late, that they committed with the wrong credentials, the solution (after the fact) is to change the svn author of that revision: see this question

    Basically the syntax is:

    svn propset --revprop -r (revision_number) svn:author (new username)
    
    0 讨论(0)
  • 2020-12-22 19:46

    Go to Tortoise SVN --> Settings --> Saved Data.

    There is an option to clear Authentication Data, click on the clear button, and it will allow you to select which connection you wanted to clear userid/pwd for.

    After you do this, any checkout or update activity, it will reprompt for the userid and password.

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