• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I install git for eclipse?

 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems that eGit is the preferred way to use git within eclipse. So I've followed all the help links and wiki pages, and found a ton of long explanations on how to use git. What I can't find is where is this mythical egit? and how to I install it?

I've added what I think is the eGit "URL" to the "preferences -> available software sites"
so I have http://download.eclipse.org/egit/updates/

Now what do I do?

Thanks.

p.s. its clear that eclipse itself is at least as complex and flexible as any computer language.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Eclipse in the Help menu, do you have the Eclipse Marketplace item? If so, go there and enter git into the Find box and hit enter. egit should be the first selection.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that seems to be working.... installing as I type
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the Marketplace makes installing plugins a lot easier than what it used to be. I'm always miffed when I have to use an older version of Eclipse* that doesn't have the Marketplace because I have to look up the URLs for the plugins I need.

* A 3rd-party tool we use at work is based on an older Eclipse version.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it says it installed git cleanly, but I can't see any evidence that its actually there.

Guess I need to back up and ask:

How do I use eGit in eclipse?

In Netbeans, you could just right-click on a source file and git was one of the sub menu items, under it was diff, commit, etc.
I can't seem to find the equivalent here.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You first have to get the project registered in git. Right-click the project and select Team > Share and then choose git for the menu. From that point on, if you right click the project or a file in the project, there will be a Team menu item that provides the git options for the project.

You can probably also import an existing git project into Eclipse by doing File > Import > Git and then going thru the import wizard (this is a guess on my part, it works this way for Subversion but I've never done this with git).
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, if you look at Help > Help Content, there is a Git Documentation entry that has an egit User Guide topic that will get you started.
 
Pat Farrell
Rancher
Posts: 4678
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. That helps. more progress. I"m still not seeing everything I expect, but I'll use what I have a while before I can know even what to ask.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic