Project version controller SVN environment (subversion, subclipse)

Source: Internet
Author: User
Tags svn client custom name

The reason why we started to use version controllers is that when there are more and more project developers, we remember that when there were only two people in our team at the beginning of the year, we felt that version controllers were not necessary. when the team was increased to 5-6 people.
I tried to verify their code and copy the code every day. Without knowing it, I didn't do any other work this week ..........! It was determined that the previous version controller was used to control project development,
So I chose SVN, which we recommend more. Next I will introduce the eclipse-based development environment of SVN, including the server and client.

 

 

1. SVN Server
Download SVN Program (I tested svn-1.4.6)
Decompress the file to a directory, such as c: \ subversion.
Create a resource library to store projects, such as c: \ svnroot \ webproject
Create a project directory and initialize: C: \ subversion \ bin> svnadmin create c: \ svnroot \ webproject
Set the user information and basic information of the Project. Open the c: \ svnroot \ webproject \ conf \ passwd file, remove the comments of [users], and add users.
[Users]
 
Zjs1 = zjsjava1
Zjs2 = zjsjava2
Zjs3 = zjsjava3
Next, open conf \ svnserve. conf to modify
[General]
Anon-access = read
Auth-access = write
Password-DB = passwd
Realm = webproject
In
After completing these basic settings, you can start subversion. Of course, the best way is to make Subversion
As a service, we can use a third-party tool svnservice to run subversion as a Windows service.
Download svnservice.zip and decompress it to the C: \ subversion \ bin directory, run svnservice-install-d
-R c: \ svnroot \ webproject. The execution result is svnservice installed.
In this case, you can view the service named svnservice in the service console and start it. If you do not want to start the Subversion using the service method, you can run
Svnserve-D to start subversion.
To uninstall the svnservice, you only need to run svnservice-Remove.
At this point, the subversion has been successfully installed. Here I prefer to make it a service, and the random server starts itself.

2. SVN client subclipse
Subclipse is a plug-in for eclipse.
I also encountered many problems when installing the client.
Use eclipse's automatic update tool help
Softwareupdates
Find and install
New remote site, custom name, URL select one of the following

 

Name: subclipse 1.4.x (eclipse 3.2 +)
URL: http://subclipse.tigris.org/update_1.4.x

Name: subclipse 1.2.x (eclipse 3.2 +)
URL: http://subclipse.tigris.org/update_1.2.x

Name: subclipse 1.0.x (eclipse 3.0/3.1)
URL: http://subclipse.tigris.org/update_1.0.x

Because my actual development is developed with myeclipse6.0, so I chose http://subclipse.tigris.org/update_1.4.x
I
Directly next. Note that subclipse integration for mylyn 3.x (optional) may occur in some cases)
(3.0.0) requires plug-in "org. Eclipse. mylyn. Tasks. Core (3.0.0)", or
Compatible. Error. This does not matter. You only need to tick the integrations in the first box.
After installation, you can use it.
The following describes how to use
Right-click the project and choose team-share project-svn-create a new repository location in
Enter SVN: // resource Server IP Address/resource storage file/For example: SVN: // 192.168.1.1/svnroot/webproject in the URL
Next.
Operations are mostly performed in the team, including submission and update. There is also a relatively good function (compare)

 

Installation Package download: http://download.csdn.net/source/820810

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.