aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes How do I install git for eclipse? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How do I install git for eclipse?" Watch "How do I install git for eclipse?" New topic
Author

How do I install git for eclipse?

Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

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

Joined: May 14, 2008
Posts: 5823
    
    7

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.


JBoss In Action
Pat Farrell
Rancher

Joined: Aug 11, 2007
Posts: 4646
    
    5

Thanks, that seems to be working.... installing as I type
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

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

Joined: Aug 11, 2007
Posts: 4646
    
    5

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

Joined: May 14, 2008
Posts: 5823
    
    7

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

Joined: May 14, 2008
Posts: 5823
    
    7

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

Joined: Aug 11, 2007
Posts: 4646
    
    5

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do I install git for eclipse?