如何将已签出的 svn 存储库导入 Eclipse?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1699338/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 14:08:00  来源:igfitidea点击:

How to import an already checked out svn repository into Eclipse?

eclipsesvnrepository

提问by sundar - Reinstate Monica

I have a Subversion repository I have checked out and have in my local hard disk. Now, how do I import this into Eclipse?

我有一个 Subversion 存储库,我已经签出并保存在我的本地硬盘中。现在,我如何将其导入 Eclipse?

When I choose File > Importand choose SVN, there is only an option to checkout a project from the server again. File > Newproject seems to be for projects we are creating new projects from scratch.

当我选择File > Import并选择 SVN 时,只有一个选项可以再次从服务器检出项目。文件 > 新项目似乎适用于我们从头开始创建新项目的项目。

采纳答案by Chris Nava

"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.

“导入...”现有项目,然后“共享...”项目。Subversive(或 SubClipse)客户端将意识到该项目有一个 .svn 文件夹并重新附加到存储库。

回答by stevek

In Eclipse click on:

在 Eclipse 中单击:

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.

但是,您必须定义一个与正在检出的工作区位置不同的工作区位置,以防止自己更改检出的存储库。

回答by user3465056

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.

我试过File->Import Projects from File System or Archive,在 的空白处Import source,你只需要浏览按钮Directory..并找到你想要导入的项目路径。然后自动检测svn连接。

回答by Rima

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.

在安装过程中使用适当的 SVN 连接器Windows->Preferances->Team->SVN->SVNConnectors。SVNKit 1.8.11 对我来说有效。

Make sure Enable automatic project sharecheckbox is set at this location Windows->Preferances->Team->SVN->General

确保Enable automatic project share在此位置设置了复选框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 .svnhidden folder. Need not explicitly do Team->Share project.

只需导入现有的SVN项目File->Import->General->Existing Projects into Workspace,eclipse就会根据.svn隐藏文件夹自动识别。不需要明确地做Team->Share project