Eclipse和EGit [英] Eclipse and EGit

查看:165
本文介绍了Eclipse和EGit的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse Helios SR2安装中安装了EGit插件。我还在我的一个项目中初始化GIT存储库。但是,与SVN不同的是,当我对源代码进行更改时,EGIT并未向我展示可见指示。这是为什么发生?即使在初始化GIT存储库并进行提交之后,根本没有任何可见指示。

I have installed EGit plugin on my Eclipse Helios SR2 Installation. I also have a initialize a GIT repository in one of my projects. But unlike SVN EGIT doesn't show me visiual indications when I make changes to the source code. Why is this happening? Even after the GIT repository is initialized and a commit is made there are no visual indications at all.

PS:我已经使用终端初始化存储库,添加文件和进行初始提交。

PS: I have used the Terminal to initialize the repository, add files and make the initial commit.

推荐答案

如果您使用了终端,那么您必须告诉Eclipse,该项目是Git项目,应该由例如:It。您可以通过右键单击项目,然后选择团队 - >共享项目,选择Git,然后在下面的对话框中选中在项目的父文件夹中使用或创建存储库复选框。然后在存储库一栏中,它会显示一个像../.git的路径。现在完成,你应该完成。

If you used the terminal, then you have to tell Eclipse, that the project is a Git project and should be managed by EGit. You can do that by right-clicking on the project, then select Team -> Share Project, choose Git, and in the following dialog check the box "use or create repository in parent folder of project". Then in the column "Repository" it should show you a path like "../.git". Now finish and you should be done.

这篇关于Eclipse和EGit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆