[英]How to include a forked repo from Git into my eclipse java project?
I am working on a forked repository and want to include that into my local Eclipse project. 我正在开发一个分叉的存储库,并希望将其包含在我的本地Eclipse项目中。 I have gone through many documents over the internet and I am unable to find any relevant document.
我已经在Internet上浏览了许多文档,但是找不到任何相关文档。 Whatever I do, I end up copying file with no .project file in the eclipse project folder and hence is unable to debug that.
无论我做什么,我最终都会在eclipse项目文件夹中复制没有.project文件的文件,因此无法对其进行调试。 Please help if any one doing the same.
如果有人这样做,请提供帮助。 Its surprising not to find anything on net.
没有在网上找到任何东西令人惊讶。 May be I am missing something.
可能是我缺少了一些东西。 Any pointers to such document will be appreciated.
指向此类文档的任何指针将不胜感激。
A forked repo (meaning a clone of a repo on the server ) is like any other repo. 分叉的仓库(即服务器上仓库的克隆 )与其他仓库一样。
You can clone it locally, and if that repo include a .project
and a .classpath
, import that project into your Eclipse workspace. 您可以在本地克隆它,并且如果该仓库包含
.project
和.classpath
,则将该项目导入到您的Eclipse工作区中。
Then, you can add that existing local repo (that you have cloned locally) in your Eclipse Git repository view: see " How make Eclipse/EGit recognize existing repository information after update? ". 然后,您可以在Eclipse Git存储库视图中添加该现有本地存储库(已在本地克隆):请参阅“ 如何使Eclipse / EGit在更新后识别现有存储库信息? ”。
Or you can import the git repo in your Eclipse Git view following: 或者,您可以按照以下步骤在Eclipse Git视图中导入git repo:
But remember: if the repo hasn't versioned the .project
and a .classpath
, no amount of fork or clone will make it easier to import as a project in your Eclipse. 但是请记住:如果回购尚未对
.project
和.classpath
版本控制,则没有大量的fork或clone将使它更容易作为Eclipse中的项目导入。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.