git Eclipse EGIT 没有显示我刚刚在包资源管理器中克隆的项目?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/24412783/
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 10:08:35  来源:igfitidea点击:

Eclipse EGIT not showing project I just cloned in package explorer?

eclipsegitegit

提问by tmn

I just cloned a repository in Eclipse. However, it is not showing up in the package explorer. How do I get it there? I see the branches and everything in repository view... but I cannot edit the contents.

我刚刚在 Eclipse 中克隆了一个存储库。但是,它没有显示在包浏览器中。我怎样才能把它弄到那里?我在存储库视图中看到了分支和所有内容...但我无法编辑内容。

回答by nitind

Right-click on the Working Directory in the Git Repositories view and Import the projects into the Eclipse workspace. They will not be copied. Clones can contain more than one project--wouldn't want to automatically import all of them (plus some of them might be one-off test projects buried in the tree somewhere).

右键单击 Git Repositories 视图中的 Working Directory,然后将项目导入 Eclipse 工作区。他们不会被复制。克隆可以包含多个项目——不想自动导入所有项目(而且其中一些可能是埋在树中某处的一次性测试项目)。

回答by Nisarg Patil

In package explorer view -> Right click -> Team -> Share Project. This should show the branch name in package explorer as well.

在包资源管理器视图 -> 右键单击​​ -> 团队 -> 共享项目。这也应该在包资源管理器中显示分支名称。

回答by Makuna

If Git is located locally:

如果 Git 位于本地:

Right-Click in Project Explorer->"Import..." choose Git->"Projects from Git". Press Next and then "Existing local repository". Select the git repository, it will be imported in the Project Explorer

在项目资源管理器中右键单击->“导入...”选择 Git->“来自 Git 的项目”。按下一步,然后按“现有本地存储库”。选择 git 存储库,它将在项目资源管理器中导入