mac svn

svn admin

1.command introduction:   svnadmin command/path/to/repos [options] [args]

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]


2.Procedures

  •       Find a path that you want to store the SVN project. Like /Users/<username>/foldername
  •       Use "svnadmin" to create a default SVN project

        svnadmin create /Users/<username>/<foldername>

        then you will find there is a svn directory created in you folder

  •      Change the authority of svn project

        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

  •        Start SVN server

       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!

  •       Stop svn server

3.use SVN to manage project

  •     checkout code from online svn address

    command:  svn checkout <svn url> --username <yourusername> --password <yourpassword> /Users/<foldername>/<yoursvnprojectname>

  •     update the latest code from svn

    Locate to your svn directory

    command:  svn update

  •     commit code from local project

    Locate to you svn directory

    command:  svn commit -m "yourfilename"


Troubleshooting

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.



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值