---------------------------------------------SVN Server Setup
Create SVN server Management on Mac
-------------Step1
$ svnadmin Create Svndir
-------------Step2
conf > svnserve.conf Modifying configurations
# anon-access = Read
# auth-access = Write
# password-db = passwd
# authz-db = Authz
Remove these front # and spaces,
Anon-access represents anonymous access rights
Anon-access = None means anonymous access is forbidden and requires an account password to access
--more--
-------------Step3
conf >passwd file
Add zyx=123456 after [users] to indicate that the ZYX account was created and that the password is 123456.
Such as:
[Users]
# Harry = Harryssecret
# sally = Sallyssecret
xyz=123456
-------------STEP4
conf >authz file
passwd user xyz Plus to + = Jackgroup Create user group,
such as: jackgroup=xyz
-------------STEP5
Group Permission settings
RW read-write permission, [/] indicates root directory
such as: @jackgroup =RW
-------------STEP6
Turn on SVN server
$svnserve-D-R Svndir
-------------shut down the SVN server
Find PID
Ps-e | grep svnserve
Turn off PID
Kill 1190
Or
Killall Svnserve
-------------using the SVN client feature
Importing code from the local to the server
SVN import Weibo
Weibo all content uploaded to the server svn repository Weibo directory, the content in quotation marks is a comment description
$ svn import Weibo Svn://localhost/svn/weibo--username=xyz--password=123456-m "Initialize Imports"
Authorization failed problem appears:
Within the Conf>authz file, add [/] to represent all resources in the root directory
-------------Download the code from the server side to the client locally
SVN checkout Svn://localhost/svn/weibo--username=xyz--password=123456/users/apple/documents/code
Sign up to the current directory/users/apple/documents/code
-------------commit the changed code to the server
Add to
SVN Add File/Folder
Change
SVN commit-m "modified main.m file"
When the problem occurs:
The log message is a pathname (was-f intended?); Use '--force-log ' to override
Workaround:
SVN ci submission file-M "Change new description"
-------------update the server-side code to the client
SVN update
Other methods
SVN help
Build and use SVN server under Mac