As a programmer, SVN is a common and inevitable use of a tool, it is a full spell for subversion, is an open source version control system, each modified files and directories can be accurately recorded in order to be used in time to extract. This article mainly describes how to use SVN in eclipse.
Tools/Materials
I. Download and install the Subclipse plugin in eclipse
- 1
Open Eclipse, find Marketplace in the Help menu, and click Enter.
- 2
In the Search box find, enter Subclipse, click on the right of the Go button query, Subclipse found, click on the lower right corner of the button install installation.
- 3
Select some files that need to be installed, choose all by default, and click Next to do the next step.
- 4
Agree to the license agreement, tick "I accept the terms of the license agreements", then click Finish to complete.
- 5
The installation process shows that some hints may appear during the installation process, so you can agree.
- 6
Subclipse you need to restart eclipse after the installation is complete.
- 7
Subclipse Usage (subclipse usage report) is optional and free to decide. usually not checked. This way, even if the installation is complete.
END
Second, SVN resource library
- 1
After the Subclipse installation is complete, you can use SVN. In the Window menu, execute: Show View--and other.
- 2
Retrieve the SVN keyword in the pop-Up Show view dialog box to quickly find the SVN repository, select, OK.
- 3
The SVN repository appears in the Problem view window. Note: The problem view is what we often call "backstage," which is used to display code or project configuration errors, and double-click the error entry to quickly locate the code.
- 4
Right-click the empty space in the SVN repository window and create a new repository location.
- 5
Add a new SVN repository, enter the correct server address in location "locations", and then finish.
- 6
Enter your username and password and click "Save Password" to log in more quickly next time.
END
Third, upload the project
- 1
Right-click on the item you want to upload and share project under team.
- 2
Select the SVN repository and click Next to proceed to the next step.
- 3
Share the project to the SVN repository, select the existing repository fire to create a new location, click Next Next.
- 4
Select the folder name in the SVN repository, or you can use the specified module name, which is already specified on the server, finish.
- 5
"Open this perspective now" prompt.
- 6
To see the effect further, we can now open it in the Web page. Open the project folder, empty! You need to perform the next step.
- 7
Submit: Again, right-click on the project, select Team, this time we found many more options, click "Submit".
- 8
Submit the address, you can write some instructions here, click OK.
- 9
Back to the Web page, you can see that all the files have been uploaded.
END
Iv. Download the project
- 1
Switch to the SVN repository, right-click the item you want to check out, and select "Check out as ...".
- 2
As a project in the workspace check out, enter the project name, in order to maintain consistency can be directly default, and then finish.
- 3
The items after checkout are presented directly in eclipse, actually exporting the project to a set workspace.
- 4
Export: Export refers to any location that can be exported directly to the local computer. Similarly, right-click the selected item and select the export item.
- 5
In the pop-up dialog box, select Export Directory via the browse button.
END
V. Delete items in SVN
Switch to the SVN repository, right-click the item you want to delete, and select Delete.
Edit the Submit comment and click OK to finish.
Using SVN in Eclipse