Svn build in windows and linux

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

Client download link

Client

02. server download, window version

Server download link (windows)
Here Insert Picture Description

Second, the server set up (windows)

01. Click VisualSVN Server Manager

Open the server
02Here Insert Picture Description

2. Create a user right Users

Click Create New User
Here Insert Picture Description

03. Right-click VisualSVN Server (Local)

Click stop, then right-click propeties, operating in the figure below, and finally click start
Here Insert Picture Description

04. Create a warehouse

Here Insert Picture Description

05. Test warehouse is ok

Right-click MyRepository, select Cope URL to Clipboard, paste it into your browser
Here Insert Picture Description

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

Here Insert Picture Description

02. Upload

Right-click project1, select TortoiseSVN of import
Here Insert Picture Description

03. browser to view

Here Insert Picture Description

Third, the service terminal building (Ali cloud ecs)

Bibliography thank the following bloggers article
Reference 1
Reference 2

1. Install

  1. apt-get install subversion; download svn
  2. server --version; see the version of svn

2. Create Repository - Multiple warehouse

  1. 1. Create a directory to hold the repository (this directory is the root of all projects)
  2. mkdir -p /usr/local/svnRepos
  3. 2. Create multiple projects paths based on the actual situation
  4. mkdir -p /usr/local/svnRepos/project1
  5. mkdir -p /usr/local/svnRepos/project2
  6. 3. Create multiple svn repository with project path just created one correspondence
  7. svnadmin create /usr/local/svnRepos/project1
  8. svnadmin create /usr/local/svnRepos/project2
  9. 4. Configuration porject1
  10. 5. to project1 directory
  11. cd /usr/local/svnRepos/project1/conf
  12. 6. List Files
  13. ls
  14. 7. Set the user name and password
  15. vi passwd
  16. Zxqwer = 1234
  17. 8. Set authz
  18. [groups]
  19. [/]
  20. zxq = rw
  21. 9. Set svnserve.conf
  22. anon-access = none # so that unauthorized users can not access
  23. auth-access = write # enable authorized users to have write access
  24. password-db = password
  25. authz-db = authz # Access control file
  26. realm = /usr/local/svnRepos/project1
  27. 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

  1. 01. Start
  2. If you start multiple projects simultaneously repositories on a single server, start the path must be the root of all projects warehouse than
  3. Such as:
  4. /usr/local/svnRepos/project1
  5. /usr/local/svnRepos/project2
  6. Corresponding to the / usr / local / svnRepos /
  7. Start command
  8. svnserve -d -r /usr/local/svnRepo/
  9. 02. Check svn port
  10. netstat -antp | grep svn
  11. 03. Close svn
  12. killall svnserve
  13. 04. connection
  14. url svn://ip:3690/project1
  15. Username zxq
  16. 1234

For reference portion screenshot
Here Insert Picture Description
Here Insert Picture Description
end ~

This blog take a lot of the pit, not shallow, but fortunately resolved, thank reference on csdn again,

Released three original articles · won praise 7 · views 1344

Guess you like

Origin blog.csdn.net/weixin_41908336/article/details/104359388