How to Use CVS in eclipse Quick Start Guide

Source: Internet
Author: User
Version control is essential for team development. CVS is an excellent open-source version control software. Eclipse itself has built-in support for CVs, which can be used simply by simple configuration.

First, we need to correctly install and configure the CVS server. Generally, the Linux Server comes with the CVS service, but the command line operations are cumbersome. A simple and easy-to-use CVS server is also available in windows. We recommend cvsnt to download cvsnt 2.0.51a, install and start cvsnt:

Switch to the repositories panel and add a repository named/CVS-java. cvsnt will prompt whether to initialize the repository. Select:

Then select "pretend to be a Unix CVS version" on the advanced panel ":

Then, add the user name and password for each developer in the Windows account.

Now, the installation and configuration of cvsnt have been completed. Next, start eclipse. We can use the original Hello project or create a new project, and then select the menu window> show View> other, open CVS-> CVS repositories:

Click the button to add a repository:

Note: Enter the Windows user name and password, select "Validate connection on finish", and click Finish:

First, we need to put an existing project into the CVS server, switch to package explorer, select Hello project, right-click and choose team> share project... :

Use the repository we just added, continue, and add all the files to CVS. Finally, the eclipse prompts commit:

Enter a simple comment and confirm. Eclipse then submits the entire project to the CVS server. You can see the icon changed in package explorer. The hello. Java file will be followed by version 1.1. Refresh the CVS repositories panel to see the newly added project:

In team development, after a basic project is created and submitted to CVS, other developers must first check out the project to their local computers for demonstration, first, delete the hello project in package explorer, then open CVS repositories (if you do not see the repository, add the repository according to the above method), select Hello project, right click, select Check out... :

As a project, you can view the checked-out project in package explorer.

After modifying some source files, submit the changes to the CVS server. Select the modified file or project, right-click and choose team> commit... :

Enter a simple comment and submit it to the CVS server. The source file version is changed to 1.2.

the preceding section briefly describes how to build a CVS server and how to use CVS in eclipse. You can refer to the CVS manual to learn more about Branch, merge, and other functions.

Related Article

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.