Reference: http://www.ha97.com/4467.html
1.
# Current Directory:/home/lizk
Mkdir SVN
CD SVN
Svnadmin create MyApp
SVN import/home/lizk/project file: // home/lizk/SVN/MyApp-M "init directory"
2.
# Current Directory:/home/lizk/SVN/MyApp/Conf
# Edit file-passwd
[users]# harry = harryssecret# sally = sallyssecretpm = hello
# Edit authz
[groups]# harry_and_sally = harry,sally# harry_sally_and_joe = harry,sally,&joe[/]pm = rw* =
# Edit svnserve. conf
general]anon-access = noneauth-access = writepassword-db = passwdauthz-db = authz
3.
Start:
Svnserve-d-r/home/lizk/SVN
Close:
PS-Aux | grep svnserve
Kill-9 ID No.
4. Check out
SVN Co SVN: // 192.168.60.10/MyApp
5. boot
Reference: http://blog.csdn.net/linglongwunv/article/details/5186968
Vim/etc/rc. d/rc. Local
/Usr/bin/svnserve-d-r/home/lizk/SVN
Note:
SVN list SVN: // 192.168.60.10/MyApp // list Directories
SVN export SVN: // 192.168.60.10/MyApp, used to export a clean project file, that is, excluding. SVN file information.
SVN mkdir SVN: // 192.168.60.10/A/B/C-M "" // create a directory
SVN remove SVN: // 192.168.60.10/a/B/trunk-M "Sss" // Delete directory
SVN mkdir SVN: // 192.168.60.10/A/B/C/branches-M "" // create a directory
SVN import V1.0/SVN: // 192.168.60.10/A/B/C/trunk-M "init trunk" // import the project file
SVN checkout SVN: // 192.168.60.10/A/B/C/trunk./myproject // Export
Svn cp svn: // 192.168.60.10/A/B/C/trunk SVN: // 192.168.60.10/A/B/C/branches/V1.0-M "init V1.0 branch" // create Branch
SVN info // view SVN information of the current directory
SVN switch -- relocate SVN: // lizk@10.10.10.72/A/B/C/branches/v1.8.9 SVN: // lizk@192.168.1.78/A/B/C/branches/v1.8.9 // modify the svn Server IP, or after deploying it to another machine, relocate.