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

前端 未结 13 2698
孤城傲影
孤城傲影 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:37

    Most of the answers seem to be for svn+ssh, or don't seem to work for us.

    For http access, the easiest way to log out an SVN user from the command line is:

    rm ~/.subversion/auth/svn.simple/*

    Hat tip: http://www.yolinux.com/TUTORIALS/Subversion.html

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

    Using Subversion with either the Apache module or svnserve. I've been able to perform operations as multiple users using --username.

    Each time you invoke a Subversion command as a 'new' user, your $HOME/.subversion/auth/<authentication-method>/ directory will have a new entry cached for that user (assuming you are able to authenticate with the correct password or authentication method for the server you are contacting as that particular user).

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

    Go to ~/.subversion/auth/svn.simple/*, and you will see a list of files that contains the information about your svn user account. Just delete all others that you don't need.

    After that, when you do anything that regards to SVN operation, such as commit, rm, etc,. You will be prompt again to enter username or passwords.

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

    If you need to specify a username other than your logged in user for use with svn+ssh just add an entry to your .ssh/config file:

    Host example.com
    User jdoe
    
    0 讨论(0)
  • 2020-11-30 18:38

    Subversion usually asks me for my "Subversion username" if it fails using my logged in username. So, when I am lazy (usually) I'll just let it ask me for my password and I'll hit enter, and wait for the username prompt and use my Subversion username.

    Otherwise, Michael's solution is a good way to specify the username right off.

    0 讨论(0)
  • 2020-11-30 18:40
    "svn co --username=yourUserName --password=yourpassword http://path-to-your-svn"
    

    Worked for me when on another user account. You will be prompted to enter username/password again though. You need to login like the above once and you are all set for the subsequent times(Unless you restart your machine).

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