1, download eclipse, if not installed please go here to download the installation: http://eclipse.org/downloads/, download installation about eclipse no longer repeat.
2. Download SVN plugin subclipse, there are two ways to install it. Online and offline plug-in installation packages.
3, SVN plugin and update address, you need to choose the version you need. Now the latest is 1.8.x
Links for 1.8.x Release:
Eclipse Update Site url:http://subclipse.tigris.org/update_1.8.x
SVN plugin package Download: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Links for 1.6.x Release:
Eclipse Update Site url:http://subclipse.tigris.org/update_1.6.x
SVN plugin package Download: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Links for 1.4.x Release:
Eclipse Update Site url:http://subclipse.tigris.org/update_1.4.x
SVN plugin package Download: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
4. Download the plug-in package and copy the plug-in package to the Eclipse installation directory. See figure
After downloading the plugin package directory structure:
Copy the files in the plug-in package features and plugins directories to the features and plugins of the Eclipse installation directory, respectively. And then restart Eclipse.
5. Install through eclipse, see figure
Then go all the way to Next, OK!!
Add an item to the repository
To add a new project to the Subversion repository, right-click the project (available in any Eclipse project view or Navigator view) and select Team > Share project from the menu. Eclipse Displays the Share Project dialog box.
Select SVN from the list of repositories currently supported by Eclipse and click Next. The next dialog box () lets you select an existing repository location, or create a new location.
If your repository is listed (as you can see, I have added my own library), select it and click Finish. If your repository is not listed, add it (select the first option next, enter the resource URL), and continue. Eclipse creates a new directory in the repository with the same name as the project and displays a list of all the files and folders in the project.
To check out a project from SVN:
New--other, select Check Out project from SVN,:
Select the resource address is OK:
In the field at the top, enter the appropriate content to describe this item, and then click Select All to select all the files for the project. Click OK to check in the project and pass its current state to the Subversion repository.
The commands and output of Subversion are displayed in the Console view, usually at the bottom of the Eclipse window (if you see what Subclipse is doing with the project).
One of the key features of the version control system is that other developers can continue to develop at any time and submit their changes when they are ready. To download these changes and integrate them with the local copy, you need to update the project.
Right-click the item you want to update, and then select Team > Update from the menu. Eclipse will retrieve any changes from the repository and attempt to merge them with the local copy.
If you add a file to your project (see Figure 15), it does not automatically become part of version control-you need to explicitly add it to a specific repository. In the screenshot below, you can see that I have added the ReadMe.txt file to the Threadwork project.
Right-click the new file and select Team > Add to Version Control. That's it! The next time a change in this project is submitted to the repository, the new file is also checked in.
If you add a file to a repository that is not related to your project, you can easily delete it. Right-click the file, and then select Delete. You do not need to use the Team menu, Subclipse automatically marks the file to be deleted and removes it from the project. The next time a change is submitted to the repository, the file is deleted.
To rename a Subclipse controlled file or directory, right-click it and select Rename. Type a new name for the item in the input field, and press ENTER. The file is renamed in the project, and the rename operation (adding a new name via the add operation, deleting the old name through the delete operation) is queued for your next commit. In Figure 16, you can see the Threadwork project after renaming main.c to THREADWORK.C and before committing the changes. Note that the blue small plus sign that Subclipse adds to the "new" file indicates that the file is scheduled to be added at the next commit.
If the project generates files, or includes Subversion repository files that you do not want to check in, you can notify Subclipse to ignore them. Right-click the file or directory you want to exclude in version control, and then select Team > Add to Svn:ignore to display the ADD to Svn:ignore dialog box.
Click OK to add this specific file to the Svn:ignore property of the project directory. Select Wildcard extension Ignore all files that have the current file name extension, or choose Custom pattern to add your own wildcard characters in the Ignore list. These changes to the Ignore list are added to the repository the next time the change is committed.
If you are satisfied with the changes to your project, you have determined that your code can be compiled, and you have tested the changes, you should submit them to the Subversion repository. When your workstation crashes, it can act as a backup and allow other developers to update their local copy to include your changes.
Be sure to update your project (see "Update Project") before attempting to commit the change. Right-click the project and select Team > Commit from the menu. Eclipse displays a Commit dialog box (see Figure 18) that summarizes the changes you made.
If you look closely, you'll see a property change to the project directory (I've added
Svn:ignore
Property so that some files remain outside the repository), and when you add Threadwork.c, MAIN.C is removed. The change pair actually represents an action (file rename).
At this point, if you want to keep some resources out of the repository, you can deselect these resource choices. This is useful if you have done some work in one file, and you do not want to check in the outstanding changes. Enter the appropriate comment in the text field at the top and click OK to check the changes into the repository.
Eclipse Install SVN plugin and instructions for use