Changing the username for a Subversion commit over svn+ssh

前端 未结 1 1499
终归单人心
终归单人心 2021-01-19 02:26

I\'ve run into an issue with our Subversion configuration here: I\'ve checked out a project over svn+ssh on the local Linux system. So svn info reports something along the l

1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-19 02:46

    Use "svn switch --relocate" to change the repository server URL to just the address without his username.

    Edit: The syntax is pretty simple; sorry I hadn't explained it in my initial answer. Basically, you just cd into the working copy, and run:

    svn switch --relocate svn+ssh://MYUSERNAME@server/ svn+ssh://server/
    

    That should take the username of the user running that command. I'm also fairly certain that you can also specify the new username in that URL (though am not in front of a unix box right now, so I can't test this).

    Does that command not do what you intended when you ran it from the command line?

    For more information, see the red bean chapter on svn switch.

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