记录ubuntu下的svn一些操作

1.install svn server
sudo apt-get install subversion

2.make repository
sudo mkdir /home/.svn
sudo mkdie /home/.svn/prj
sudo chmod -R ugo+rws /home/.svn/prj
sudo svnadmin create /home/.svn/prj

3. config repository
(1) config /home/.svn/prj/svnserve.conf
anon-access = none
auth-access = write
password-db = passwd
authz-db = authz
realm = test
(2) config /home/.svn/prj/passwd
[users]
developer = developer
tester = tester
(3) config /home/.svn/prj/authz
[/]
developer = rw
tester = r


如果出错可以使用svn的工具检测认证文件的正确性

svnauthz-validate /home/.svn/prj/authz

 


4. restart subversion
pkill -9 svnserve
svnserve -d -r /home/.svn

5.check out prj to workspace
svn co svn://127.0.0.1/prj workspace --username developer

6. add file to svn repository
svn add filename
svn add dirname

7. commit modify
svn commit -m "commit files"

8. update svn
svn up

posted @ 2015-08-14 21:24  王彬彬  阅读(581)  评论(1编辑  收藏  举报

专注于c++后端开发,擅长IM领域。 如有需求请联系邮箱 cugbinbin@163.com

欢迎点击个人自定义博客