linux svn 配置

#svnadmin create projectname

#vi projectname/conf/svnserve.conf

anon-access = none
auth-access =write

password-db = ../../conf/passwd

authz-db = ../../conf/authz

realm = projectname

同步

#cp -r projectname/hooks/post-commit.tmpl post-commit

#vi post-commit

export LANG=en_US.UTF-8
svn update /web/projectname --username svnusername --password svnpassword

#chmod a+x post-commit

初始导入

#svn import /data/projectname  file:///home/svndata/repository/projectname/ -m "Initial import"

#cd /web/

#svn co svn://ip/projectname

#killall svnserve
#ps aux | grep svnserve
#svnserve -d -r /home/svndata/repository/

原文地址:https://www.cnblogs.com/yiwd/p/3267701.html