在 Eclipse 上安装 Git

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

Installing Git on Eclipse

eclipsegit

提问by Adam Goode

How can I install Git on Eclipse? I found tutorials on http://cho.hapgoods.com/wordpress/?p=159but there was said that "You should then see the eight Eclipse projects 'org.spearce.something.'" I don't see those eight projects.

如何在 Eclipse 上安装 Git?我在http://cho.hapgoods.com/wordpress/?p=159上找到了教程,但有人说“然后你应该看到八个 Eclipse 项目 'org.spearce.something。'”我没有看到这八个项目。

回答by Adam Goode

Just add http://download.eclipse.org/egit/updatesto your Eclipse update manager.

只需将http://download.eclipse.org/egit/updates添加到您的 Eclipse 更新管理器。

回答by Dao Lam

Do you have Egit installed yet? If not, go to Window->Preferences->Install/Updates->Available Software Sites. Click on add and paste this link http://download.eclipse.org/egit/updates

你有没有安装Egit?如果没有,请转至 Window->Preferences->Install/Updates->Available Software Sites。单击添加并粘贴此链接http://download.eclipse.org/egit/updates

For Name, you can just put "EGit". After you have EGit installed, follow thistutorial. It helped me a lot!

对于名称,您可以只输入“EGit”。安装 EGit 后,请按照教程进行操作。这对我帮助很大!

回答by ntg

egit was included in Indigo (2011) and should be there in all future Eclipse versions after that.

egit 包含在 Indigo (2011) 中,并且在此之后的所有未来 Eclipse 版本中都应该存在。

Just go to ![(Help->Install New Software)]

只需转到 ![(Help->Install New Software)]

Then Work with: --All Available Sites--

然后使用:--所有可用站点--

Then type egit underneath and wait (may take a while) ! Then click the checkbox and install.

然后在下面输入 egit 并等待(可能需要一段时间)!然后单击复选框并安装。

回答by QAMate.com

Checkout this tutorial Eclipse install Git plugin – Step by Step installation instruction

查看本教程Eclipse 安装 Git 插件 – 分步安装说明



Eclipse install Git plugin – Step by Step installation instruction

Eclipse 安装 Git 插件 - 分步安装说明

Step 1) Go to: http://eclipse.org/egit/download/to get the plugin repository location.

步骤 1) 转到:http: //eclipse.org/egit/download/以获取插件存储库位置。

Step 2.) Select appropriate repository location. In my case its http://download.eclipse.org/egit/updates

步骤 2.) 选择适当的存储库位置。就我而言,它的http://download.eclipse.org/egit/updates

Step 3.) Go to Help > Install New Software

步骤 3.) 转到帮助 > 安装新软件

Step 4.) To add repository location, Click Add. Enter repository name as “EGit Plugin”. Location will be the URL copied from Step 2. Now click Ok to add repository location.

步骤 4.) 要添加存储库位置,请单击添加。输入存储库名称作为“EGit 插件”。位置将是从第 2 步复制的 URL。现在单击确定以添加存储库位置。

Step 5.) Wait for a while and it will display list of available products to be installed. Expend “Eclipse Git Team Provider” and select “Eclipse Git Team Provider”. Now Click Next

步骤 5.) 稍等片刻,它将显示要安装的可用产品列表。展开“Eclipse Git Team Provider”并选择“Eclipse Git Team Provider”。现在点击下一步

Step 6.) Review product and click Next.

步骤 6.) 查看产品并单击下一步。

Step 7.) It will ask you to Accept the agreement. Accept the agreement and click Finish.

第 7 步。)它会要求您接受协议。接受协议并单击完成。

Step 8.) Within few seconds, depending on your internet speed, all the necessary dependencies and executable will be downloaded and installed.

第 8 步。)在几秒钟内,根据您的互联网速度,将下载并安装所有必要的依赖项和可执行文件。

Step 9.) Accept the prompt to restart the Eclipse.

步骤 9.) 接受提示以重新启动 Eclipse。

Your Eclipse Git Plugin installation is complete.

您的 Eclipse Git 插件安装已完成。

To verify your installation.

验证您的安装。

Step 1.) Go to Help > Install New Software

步骤 1.) 转到帮助 > 安装新软件

Step 2.) Click on Already Installed and verify plugin is installed.

步骤 2.) 单击已安装并验证插件已安装。

回答by user1187534

I made an installation guide for Egit on Eclipse so I thought I would share it.

我在 Eclipse 上制作了 Egit 安装指南,所以我想我会分享它。

  1. INSTALL EGIT plugin in eclispe which is pretty easy. If EGit is missing in your Eclipse installation, you can install it via the Eclipse Update Manager via: Help → Install new Software. EGit can be installed from the following URL: http://download.eclipse.org/egit/updatesUnder Eclipse Git Team Provider, tick ONLY "Eclipse EGit" and then download the plugin.

  2. CONNECT TO YOUR LOCAL REPOSITORY. I right clicked on the project, selected "team > share project" and then ticked "use or create repository"

  3. GIT IGNORE. Mark the "bin" folder as "ignored by Git", either by right-clicking on it and selecting Team > Ignore or by creating a .gitignore file. My file was generated for me, I just had to make it visible. Here's how in eclipse: In your package explorer, pull down the menu and select "Filters ...". You can adjust what types of files are shown/hidden there.

  4. IDENTIFY YOURSELF. Click Preferences > Team > Git > Configuration and make sure your name & email are there so we know which user committed/pushed what.

  1. 在 eclispe 中安装 EGIT 插件非常简单。如果您的 Eclipse 安装中缺少 EGit,您可以通过 Eclipse 更新管理器安装它:帮助 → 安装新软件。EGit 可以从以下 URL 安装:http://download.eclipse.org/egit/updates在 Eclipse Git Team Provider 下,勾选 ONLY "Eclipse EGit" 然后下载插件。

  2. 连接到您的本地存储库。我右键单击该项目,选择“团队 > 共享项目”,然后勾选“使用或创建存储库”

  3. git 忽略。将“bin”文件夹标记为“被 Git 忽略”,方法是右键单击它并选择 Team > Ignore 或创建一个 .gitignore 文件。我的文件是为我生成的,我只需要让它可见。以下是 Eclipse 中的方法:在您的包浏览器中,下拉菜单并选择“过滤器...”。您可以调整在那里显示/隐藏的文件类型。

  4. 证明你的身份。单击首选项 > 团队 > Git > 配置并确保您的姓名和电子邮件在那里,以便我们知道哪个用户提交/推送了什么。

NOW YOU ARE READY TO ADD/COMMIT/PUSH/PULL files with the plugin!

现在您已准备好使用插件添加/提交/推送/拉取文件!

回答by Sivakumar Reddy

It's Very Easy To Install By Following Below Steps In Eclipse JUNO version

在 Eclipse JUNO 版本中按照以下步骤进行安装非常容易

Help-->Eclipse Marketplace-->Find: beside Textbox u can type "Egit"-->select Egit-git team provider intall button-->follow next steps and finally click finish

帮助-->Eclipse Marketplace-->查找:在Textbox旁边你可以输入“Egit”-->选择Egit-git team provider inall按钮-->按照下一步操作,最后点击完成

回答by PixelsTech

There are two ways of installing the Git plugin in Eclipse

Eclipse中安装Git插件有两种方式

  1. Installing through Help -> Install New Software..., then add the location http://download.eclipse.org/egit/updates/
  2. Installing through Help -> Eclipse Marketplace..., then type Egitand installing it.
  1. 通过帮助安装 -> 安装新软件...,然后添加位置http://download.eclipse.org/egit/updates/
  2. 通过 Help -> Eclipse Marketplace...安装,然后输入Egit并安装它。

Both methods may need you to restart Eclipse in the middle. For the step by step guide on installing and configuring Git plugin in Eclipse, you can also refer to Install and configure git plugin in Eclipse

这两种方法可能都需要您在中间重新启动 Eclipse。有关在 Eclipse 中安装和配置 Git 插件的分步指南,您还可以参考在 Eclipse 中安装和配置 git 插件

回答by Dawngerpony

You didn't mention which version of Eclipse you are using, but others have already posted good answers for modern versions of Eclipse. Unfortunately one of my legacy projects requires Eclipse Europa; the old EGit project homepagestates the following:

您没有提到您使用的是哪个版本的 Eclipse,但其他人已经为 Eclipse 的现代版本发布了很好的答案。不幸的是,我的一个遗留项目需要 Eclipse Europa;在老例如:It项目主页规定如下:

The plugin only works on Eclipse 3.4 (Ganymede) or newer. Eclipse 3.3 (Europa) is not supported anymore. Since the plugin is still very much work-in-progress we want to take advantage of new platforms features to facilitate progress.

该插件仅适用于 Eclipse 3.4 (Ganymede) 或更新版本。不再支持 Eclipse 3.3 (Europa)。由于该插件仍在开发中,我们希望利用新平台功能来促进进展。

So I guess I'm SOL - back to the graphical GitHub client for me! Lucky it's a legacy project.

所以我想我是 SOL - 为我回到图形 GitHub 客户端!幸运的是,这是一个遗留项目。

回答by karthik

Try with this link: http://download.eclipse.org/egit/github/updates

试试这个链接:http: //download.eclipse.org/egit/github/updates

1)Go to Help-> Install new Software

1)转到帮助->安装新软件

2)Click on Add...

2)点击添加...

3)Name: eGit Location:http://download.eclipse.org/egit/github/updates

3)名称:eGit 位置:http: //download.eclipse.org/egit/github/updates

4)Click on OK

4)点击确定

5)Accept the licence.

5) 接受许可。

You are good to go

你已准备好出发