In Subversion can I be a user other than my login name?
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.
For svn over ssh try:
svn list svn+ssh://[user_name]@server_name/path_to_repo
svn will prompt you for the user_name
's password.
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!]).