SVN creates a new version of the repository

Source: Internet
Author: User

#创建版本库

[Email protected] ~]# cd/data/svndata/[[email protected] svndata]# svnadmin Create Yunwei

#查看结果

[[Email protected] svndata]# lltotal 48-rw-r--r--.  1 apache apache  1196 nov 14 10:54 accessfile-rw-r--r--.  1 apache apache  364  oct 20 12:40 accessfile.bak-rw-r--r--.  1 apache apache  871  oct 20 18:35 accessfile.bak1-rw-r--r--.  1 root   root    1030 nov  8 17:13 accessfile.ori.20161108-rw-r--r--.  1 apache  apache   85 oct 20 17:55 name.txt-rw-r--r--.  1 apache  Apache  885 nov 14 10:54 passwdfile-rw-r--r--.  1 apache apache   552 oct 20 12:40 passwdfile.bakdrwxr-xr-x. 7 apache apache  4096 nov  8 14:16 pd-rw-r--r--.  1 apache apache    83 sep 17 18:38 rAndom.sh-rw-r--r--.  1 apache apache  131 Oct 17 11:44  Useradd.shdrwxr-xr-x. 6 root   root   4096 nov 14 11:36  yunwei[[email protected] svndata]# cd yunwei/[[email protected] yunwei]#  lltotal 24drwxr-xr-x. 2 root root 4096 Nov 14 11:36  Confdrwxr-sr-x. 6 root root 4096 nov 14 11:36 db-r--r--r--.  1  root root    2 Nov 14 11:36 formatdrwxr-xr-x. 2  root root 4096 nov 14 11:36 hooksdrwxr-xr-x. 2 root root  4096 nov 14 11:36 locks-rw-r--r--.  1 root root  229 nov  14 11:36 README.TXT[[EMAIL PROTECTED] YUNWEI]# CD&NBSP, ....


#授权

#由于和之前的库权限一致, no chmod command executed

[Email protected] svndata]# chown-r apache.apache yunwei/[[email protected] svndata]# ll pd/yunwei/-ddrwxr-xr-x. 7 Apache Apache 4096 Nov 8 14:16 pd/drwxr-xr-x. 6 Apache Apache 4096 Nov 11:36 yunwei/


#重启svn服务

[[email protected] svndata]# ps -ef|grep svnroot       7724  7459  0 11:52 pts/0    00:00:00 grep svnroot      16501     1  0 Nov08 ?         00:00:00 svnserve -d -r /data/svndata/yunqiandai/[[ email protected] svndata]# kill -9 16501[[email protected] svndata]#  Svnserve -d -r /data/svndata/yunqiandai/[[email protected] svndata]# ps -ef |grep svnroot      7726     1  0  11:52 ?        00:00:00 svnserve -d -r /data/ svndata/yunqiandai/root      7728  7459  0 11:52  Pts/0  &nBsp; 00:00:00 grep svn 


#添加用户访问权限

[Email protected] svndata]# tail-4 accessfile[yunwei:/]user1 = Rwuser2 = Rwuser3 = RW


#创建或者修改svn用户的密码

[Email protected] svndata]# htpasswd passwdfile user1new password:re-type new password:updating password for user user1


#本机上的操作

1. Right-click on the created directory to use as the native SVN directory, select "SVN Checkout ..." option

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/8A/25/wKioL1gpVsbjBLyKAAEN62ZIzdc817.jpg "title=" 1.jpg " alt= "Wkiol1gpvsbjblykaaen62zizdc817.jpg"/>


2. In the popup dialog box, basically do not have special settings, click "OK" button.

"URL of Repository": the address connected to the SVN server

"Checkout directory": Native directory

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/8A/29/wKiom1gpV7qSd5VKAAB1TNKvThg477.jpg "title=" 2.jpg " alt= "Wkiom1gpv7qsd5vkaab1tnkvthg477.jpg"/>


3. In the confirmation dialog box, if there is no error, you can click "OK" button directly, you can go to the table of contents to see the results.

650) this.width=650; "src=" http://s1.51cto.com/wyfs02/M02/8A/25/wKioL1gpWKLwTva-AABnWiuSrkA519.jpg "title=" 3.jpg " alt= "Wkiol1gpwklwtva-aabnwiusrka519.jpg"/>


#在浏览器上输入svn服务器的地址, you will be asked to enter a user and password to verify the login based on the user and password that you created to execute the htpasswd passwdfile user1 command.

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/8A/29/wKiom1gpWfCRNYeJAAEOiL0nXPk295.jpg "title=" 4.jpg " alt= "Wkiom1gpwfcrnyejaaeoil0nxpk295.jpg"/>


#创建1个目录和放入1个文件后的结果

650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M00/8A/26/wKioL1gpWpezHBAAAACMmVEOFVw947.jpg "title=" 5.jpg " alt= "Wkiol1gpwpezhbaaaacmmveofvw947.jpg"/>


#参考文档:

HTTP://WWW.CNBLOGS.COM/COOKRAY/ARCHIVE/2012/11/14/2770731.HTML--SVN Creating a new project


This article is from the "Dark-matter" blog, make sure to keep this source http://gagarin.blog.51cto.com/1056957/1872640

SVN creates a new version of the repository

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.