1. 首先安装subversion包,可以使用下面命令安装
- sudo yum install subversion
3. 假定自己需要创建一个模块仓库名字叫myproject,此时需要做通过下面的命令来创建
- sudo mkdir /opt/svn/myproject
- sudo svnadmin create /opt/svn/myproject
4.1 修改/opt/svn/myproject/conf/svnserve.conf文件
- [general]
- anon-access = read
- auth-access = write
- password-db = passwd
- [myproject:/]
- kongxx = rw
- [users]
- kongxx = 123456
- sudo svnserve -d -r /opt/svn
- sudo svn mkdir svn://localhost/myproject/trunk
- sudo svn mkdir svn://localhost/myproject/branches
- sudo svn mkdir svn://localhost/myproject/tags
- svn cp -m ‘Create release1.0 branch’ svn://localhost/myproject/trunk svn://localhost/myproject/branches/release1.0
- svn cp -m ‘Create release1.0 branch’ svn://localhost/myproject/trunk svn://localhost/myproject/tags/release1.0
- svn co http://<server>/myproject/trunk