1、sudo yum install subversion
2、sudo /usr/sbin/useradd svn
sudo passwd svn
3、su svn
mkdir repositories
4、cd repositories
svnadmin create myproject
5、You need to edit "myproject/conf/svnserve.conf" and uncomment the following lines:
anon-access = none
auth-access = write
password-db = passwd
6、edit the password file "myproject/conf/passwd" adding a new user and password
[users]
john = foobar123
7、svnserve -d -r /home/svn/repositories
8、svn://svn@hostname/myproject
ref:
hooks
post-commit:
export LANG=zh_CN.UTF-8
svn update --username lyw --password lyw123 /work/htdocs/lijiabeibei.com
阅读(816) | 评论(0) | 转发(0) |