Search code examples
authenticationsvncredentials

SVN change username


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 credentials of a workmate and need to change it to my credentials for future commits.

I cannot just checkout with my credentials due to the many changes that have been done already...

Anyone familiar with this?


Solution

  • You can change the user with

    • Subversion 1.6 and earlier:

      svn switch --relocate protocol://currentUser@server/path protocol://newUser@server/path
      
    • Subversion 1.7 and later:

      svn relocate protocol://currentUser@server/path protocol://newUser@server/path
      

    To find out what protocol://currentUser@server/path is, run

    svn info
    

    in your working copy.