svn admin
Available subcommands:
crashtest
create
deltify
dump
help (?, h)
hotcopy
list-dblogs
list-unused-dblogs
load
lslocks
lstxns
pack
recover
rmlocks
rmtxns
setlog
setrevprop
setuuid
upgrade
verify
svncommand [options] [args]
svnadmin create /Users/<username>/<foldername>
then you will find there is a svn directory created in you folder
edit file svnserve.conf, delete the "#" before some lines. Lines as below should not be commented:
#anon-access=read
#auth-access=write
#password-db=passwd
#authz-db=authz
edit file passwd, add your personal username and password in tab [users]
edit file authz, config authority for your user
[groups] #this line assigned user 'panjinya' as a member of group 'topgroup'
topgroup = panjinya
# harry_sally_and_joe = harry,sally,&joe
[/] #this line means that users in group 'topgroup' will have read&write authority for the whole folder
@topgroup = rw
input command in the terminal: svnserve -d -r /Users/<foldername>/<yoursvnprojectname>
or: svnserve -d -r /Users/<foldername>
after inputing the command, if no warning in your terminal, the SVN server is started successfully!
command: svn checkout <svn url> --username <yourusername> --password <yourpassword> /Users/<foldername>/<yoursvnprojectname>
Locate to your svn directory
command: svn update
Locate to you svn directory
command: svn commit -m "yourfilename"
If you get a "Could not read response body: Connection reset by peer" error, the process for checkout or update will be interrupted. Maybe there are too many connections to your SVN url, so your connection is stopped by server. But svn client still lock your project.
You can use command "svn cleanup" to unlock your project ,then use "svn update" to get latest code.