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

查看:46
本文介绍了如何更改访问本地 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.

推荐答案

是的,这是可能的.

TortoiseSVNsvn 命令行客户端在您的配置文件文件夹中共享相同的设置位置.所以你可以简单地使用 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%Subversionauthsvn.username).

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

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

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