1. Install software
Apt-gat installSubversion
Apt-Get install libapache2-svn
2. Start subversion sErvice
Svnserve-d
3. Check sErvice
PS aux | grep svnserve
Show following message:
Wkr 6537 0.0 0.0 13784 956? SS svnserve-d
Wkr 7593 0.0 0.0 5784 864 pts/0 S + grep-color = auto svnserve
4. Create SVN Database
Svnadmin create/test_dir
5. config sErvice for SVN Database
Vim/test_dir/CONF/svnserve. conf
Edit: Remove "#" as below.
Anon-access = read
Auth_access = write
Password-DB = passwd
Authz-DB = authz
Vim/test_dir/CONF/passwd
Edit: Add users and password
[Users]
Jason = 1, 123456
Vim/test_dir/CONF/authz
Edit: group and team member limits of authority
[Groups]
Designer = Jason, admin
Tester = Andy,
[Test_dir:/]
@ Designer = RW
Andy = r
* =
6. Import project file to SVN Database
SVN import/user/ProjectFile: // usr/local/SVN/test_dir/Some/Project-M "Initial import"
7. Checkout from database
Mkdir work
CD work
SVN checkout file: // usr/loacl/SVN/test_dir/
8. add files your want
SVN add test. C main. c
9. Commit to SVN
SVN commit-M "Enter your messiges for this commit"
10. Create New dir to SVN Database
SVN mkdir/usr/local/SVN/test
11. Clean up for local SVN
SVN cleanup/project/test