svn build
1 Introduction: This article describes some of the operations set up in the windows environment svn and linux, svn into the server (s) and client (s) is one-to-many mode. In general, the server will be placed under linux environment, the client on windows environment.
Introduction 2.Subversion (SVN) is a version control system open source, which means that Subversion manages data changes over time. The data is placed in a central repository (repository) in. The archive is much like an ordinary file server, but it remembers every change in the file. So you can restore files to change the history of the old version, or browse files.
Reference - thank the following bloggers article
Reference 1
Reference 2
Reference 3
First, download and install
01. The client download, select the corresponding version
02. server download, window version
Server download link (windows)
Second, the server set up (windows)
01. Click VisualSVN Server Manager
Open the server
02
2. Create a user right Users
Click Create New User
03. Right-click VisualSVN Server (Local)
Click stop, then right-click propeties, operating in the figure below, and finally click start
04. Create a warehouse
05. Test warehouse is ok
Right-click MyRepository, select Cope URL to Clipboard, paste it into your browser
trunk、tag、branches
1.trunk: General store the project file currently being developed
2.tag: can be understood as a milestone of the project, it can be said is a snapshot, those who put the tag in the code unchanged. Those who put the tag in the code are tested before they go into later found steady.
3.branches: for the branch, can be used in many ways, some projects too large, can be divided into several branches, each module is a branch, waiting for each module development finished on into the trunk.
06. Client build
Anywhere on the desktop, right, appear Svn checkout, then prove that create success.
Third, run the test
Operating a
01. Create a local file
02. Upload
Right-click project1, select TortoiseSVN of import
03. browser to view
Third, the service terminal building (Ali cloud ecs)
Bibliography thank the following bloggers article
Reference 1
Reference 2
1. Install
- apt-get install subversion; download svn
- server --version; see the version of svn
2. Create Repository - Multiple warehouse
- 1. Create a directory to hold the repository (this directory is the root of all projects)
- mkdir -p /usr/local/svnRepos
- 2. Create multiple projects paths based on the actual situation
- mkdir -p /usr/local/svnRepos/project1
- mkdir -p /usr/local/svnRepos/project2
- 3. Create multiple svn repository with project path just created one correspondence
- svnadmin create /usr/local/svnRepos/project1
- svnadmin create /usr/local/svnRepos/project2
- 4. Configuration porject1
- 5. to project1 directory
- cd /usr/local/svnRepos/project1/conf
- 6. List Files
- ls
- 7. Set the user name and password
- vi passwd
- Zxqwer = 1234
- 8. Set authz
- [groups]
- [/]
- zxq = rw
- 9. Set svnserve.conf
- anon-access = none # so that unauthorized users can not access
- auth-access = write # enable authorized users to have write access
- password-db = password
- authz-db = authz # Access control file
- realm = /usr/local/svnRepos/project1
- 10. The configuration project2, are omitted
Conf directory in each repository as follows:
| - authz access control file
| - passwd account password file
| - svnserve.conf SVN service profile
3. Start and verify the repository
- 01. Start
- If you start multiple projects simultaneously repositories on a single server, start the path must be the root of all projects warehouse than
- Such as:
- /usr/local/svnRepos/project1
- /usr/local/svnRepos/project2
- Corresponding to the / usr / local / svnRepos /
- Start command
- svnserve -d -r /usr/local/svnRepo/
- 02. Check svn port
- netstat -antp | grep svn
- 03. Close svn
- killall svnserve
- 04. connection
- url svn://ip:3690/project1
- Username zxq
- 1234
For reference portion screenshot
end ~
This blog take a lot of the pit, not shallow, but fortunately resolved, thank reference on csdn again,