开发者

SVN: switching active user on checked out repository

开发者 https://www.devze.com 2023-04-12 21:43 出处:网络
I have a project checked out 开发者_JAVA技巧on my local machine from a remote repository, and I would like to switch the \'active\' user, so that for subsequent commits the new user will come up in th

I have a project checked out 开发者_JAVA技巧on my local machine from a remote repository, and I would like to switch the 'active' user, so that for subsequent commits the new user will come up in the logs. Is there a way to do this other than checking out the whole repository again under the new username?

Many thanks,

Joseph.


In your home directory there is a directory called .subversion. Inside there is several auth cache files. Find the one with your username in it and delete the file. On the next svn commit or any svn operation, you will be prompted for your username/pw. Enter the username that you want use.

On linux:

/home/me/.subversion/AUTH_CACHE_FILE_HERE

Or on mac:

/Users/me/.subversion/auth/some_cache_file

The filename may vary, but you can actually just delete the entire .subversion directory and it will be recreated with the next svn command.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号