In Subversion can I be a user other than my login name?

前端 未结 13 2696
孤城傲影
孤城傲影 2020-11-30 18:15

I\'d like to know how to get Subversion to change the name that my changes appear under.

I\'m just starting to use Subversion. I\'m current

相关标签:
13条回答
  • 2020-11-30 18:17

    TortoiseSVN always prompts for username. (unless you tell it not to)

    0 讨论(0)
  • 2020-11-30 18:18

    Most Subversion commands take the --username option to specify the username you want to use to the repository. Subversion remembers the last repository username and password used in each working copy, which means, among other things, that if you use svn checkout --username myuser you never need to specify the username again.

    As Kamil Kisiel says, when Subversion is accessing the repository directly off the file system (that is, the repository URL is of form file:///path/to/repo or file://file-server/path/to/repo), it uses your file system permissions to access the repository. And when you connect via SSH tunneling (svn+ssh://server/path/to/repo), SVN uses your FS permissions on the server, as determined by your SSH login. In those cases, svn checkout --username may not work for your repository.

    0 讨论(0)
  • 2020-11-30 18:22

    I believe if you use the file:// method to access your subversion repository, your changes are always performed under the user which accesses the repository. You need to use a method that supports authentication such as http:// or svn://.

    See http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.serverconfig.choosing

    0 讨论(0)
  • 2020-11-30 18:22

    I believe you can set the SVN_USER environment variable to change your SVN username.

    0 讨论(0)
  • 2020-11-30 18:23

    If you are using svn+ssh to connect to the repository then the only thing that authenticates you and authorizes you is your ssh credentials. EVERYTHING else is ignored. Your username will be logged in subversion exactly as it is established in your ssh connection. An excellent explanation of this is at jimmyg.org/blog/2007/subversion-over-svnssh-on-debian.html

    0 讨论(0)
  • 2020-11-30 18:30

    You can setup a default username via ~/.subversion/servers:

    [groups]
    yourgroupname = svn.example.com
    
    [yourgroupname]
    username = yourusername
    

    Please be aware that older versions of svn do not support it (e.g. 1.3.1 [sic!]).

    0 讨论(0)
提交回复
热议问题