How do I change the default author for accessing a local SVN repository?

后端 未结 5 2183
自闭症患者
自闭症患者 2020-12-19 01:32

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?

I know how to change a

5条回答
  •  别那么骄傲
    2020-12-19 02:06

    Yes, it's possible.

    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
    

    ... 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.

    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.

提交回复
热议问题