问题
I have a Subversion repository I have checked out and have in my local hard disk. Now, how do I import this into Eclipse?
When I choose File > Import and choose SVN, there is only an option to checkout a project from the server again. File > New project seems to be for projects we are creating new projects from scratch.
回答1:
"Import..." the existing project then "Share..." the project. The Subversive (or SubClipse) client will realize that the project has a .svn folder and reattach to the repository.
回答2:
I've tried with File->Import Projects from File System or Archive
, and in the blank space of Import source
, you just need to browse through button Directory..
and find the project path you wanted to import. Then the svn connection is automatically detected.
回答3:
In Eclipse click on:
File -> Import -> General -> Existing Projects into Workspace
However you have to define a workspace location being different from the one that is being checked out in order to prevent yourself from changes to the checked out repository.
回答4:
Install the subversive plugin from market place or from update site.
Use appropriate SVN connectors during setup Windows->Preferances->Team->SVN->SVNConnectors
. SVNKit 1.8.11 worked for me.
Make sure Enable automatic project share
checkbox is set at this location Windows->Preferances->Team->SVN->General
Just import the existing SVN project File->Import->General->Existing Projects into Workspace
, then eclipse will automatically recognize it based on the .svn
hidden folder. Need not explicitly do Team->Share project
.
来源:https://stackoverflow.com/questions/1699338/how-to-import-an-already-checked-out-svn-repository-into-eclipse