svn配置与命令行使用

来源:互联网 发布:不喜欢自拍的女生 知乎 编辑:程序博客网 时间:2024/06/13 08:06


启动指令

svnserve -d -r /opt/svn/repos --listen-port 9999

svnserve.conf

[general]anon-access = noneauth-access = writepassword-db = passwdauthz-db = authz[sasl]

authz

[aliases][groups][/]dev = rw# [repository:/baz/fuz]# @harry_and_sally = rw# * = r
[aliases][groups][/]jiangxf = rwxieyu = rw[/com-mxhd-game]xurz = rwgaohj = rw[/gamesource]xurz = rwgaohj = rw[/libsrc]xurz = rwgaohj = rw[/server]zhaodj = rw[/doc]liuf = rwweil = rw# @harry_and_sally = rw# * = r

passwd

### This file is an example password file for svnserve.### Its format is similar to that of svnserve.conf. As shown in the### example below it contains one section labelled [users].### The name and password for each user follow, one account per line.[users]jiangxf=adfasdfasdf

$ svn st
!  +  C foo
      >   local edit, incoming delete upon update
!  +  C bar
      >   local edit, incoming delete upon update
$ touch foo bar
$ svn revert foo bar
$ rm foo bar


ps. svn ingore 语法是 svn pe svn:ignore folder_name

0 0
原创粉丝点击