简体   繁体   中英

How to set username and password for SVN repository in Xcode ?

I'm new to SVN when committing the code to svn repository it was not asking username and password and it will raise issue showing author name was empty in repository commit history. How could set for username every time while committing the code to svn repository in Xcode ?

You should be able to run svn info <REPOSITORY-URL> -username <USERNAME> and the <USERNAME> will be specified as svn:author for your commits.

The actual problem is that your server allows anonymous and non-authenticated access. I guess that your admin may want to reconsider that and make the server require authentication or at least reject commits with empty svn:author property. Users should not be able to enter arbitrary usernames / commit author names. How are you going to distinguish was an author of some revision in future? How are you going to search repository history for commits made by a particular user if this user can enter anything he wants as his username?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM