你的位置:首页 > ASP.net教程

[ASP.net教程]记录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