如何更改访问本地SVN存储库的默认作者? [英] How do I change the default author for accessing a local SVN repository?

查看:437
本文介绍了如何更改访问本地SVN存储库的默认作者?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TortoiseSVN访问基于文件的本地存储库。在我所有的提交中,作者是我的Windows登录名。

I use TortoiseSVN to access file based local repo. In all my commits an author is my Windows login name. Is it possible to use different name?

我知道提交后如何更改作者,但之前如何更改?不能安装apache / svnserver。

I know how to change author after commit but how to change before? Installing apache/svnserver is not an option.

推荐答案

是的,有可能。

TortoiseSVN svn 命令行客户端在您的个人资料中共享相同的设置位置夹。因此,您可以使用 svn.exe 来签出一个版本:

TortoiseSVN and the svn command line client share the same settings location in your profile folder. So you may simply checkout one version using svn.exe:

$ svn co --username different_user_name file:///C:/path/to/your/repo

...然后Subversion将愉快地替换该存储库的关联用户名。然后,无论您使用哪种程序进行新的签出,TortoiseSVN的新提交都将始终使用该用户名。

... and Subversion will happily replace the associated username for that repository. New commits from TortoiseSVN will then always use that username, no matter with what program you make the new checkouts.

该过程应与TortoiseSVN 1.5.5一起使用。如果没有,请先清空svn的身份验证缓存(%APPDATA%\Subversion\auth\svn.username )。

The procedure should work with TortoiseSVN 1.5.5. If it doesn't, try emptying svn's authentication cache (%APPDATA%\Subversion\auth\svn.username) first.

这篇关于如何更改访问本地SVN存储库的默认作者?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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