通过 svn+ssh 更改 Subversion 提交的用户名 [英] Changing the username for a Subversion commit over svn+ssh

查看:27
本文介绍了通过 svn+ssh 更改 Subversion 提交的用户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里遇到了 Subversion 配置的问题:我在本地 Linux 系统上通过 svn+ssh 签出了一个项目.因此 svn info 报告了以下内容:

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 lines of:

URL: svn+ssh://MYUSERNAME@server/svn/project/trunk/

现在我的同事无法更新签出的工作副本(它在实时服务器上),因为命令行参数 --username 不适用于 svn+ssh.

Now my co-worker is unable to update the checked out working copy (It's on a live server) because the command line parameter --username doesn't work with svn+ssh.

如何临时更改或删除存储库 URL 中的用户名?

How can I temporarily change or remove the username from the repository URL?

推荐答案

使用svn switch --relocate"将存储库服务器 URL 更改为没有用户名的地址.

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

编辑:语法非常简单;抱歉,我在最初的回答中没有解释.基本上,您只需 cd 进入工作副本,然后运行:

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/

这应该是运行该命令的用户的用户名.我也相当确定您也可以在该 URL 中指定新用户名(虽然现在不在 unix 框前面,所以我无法测试).

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?

有关详细信息,请参阅 关于 svn 开关的红豆章节.

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

这篇关于通过 svn+ssh 更改 Subversion 提交的用户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆