views:

554

answers:

4

What's the current state of Git support in Eclipse? The EGit downloads page looks empty.

I'd like to give Git a try for a new project, but I need to know how well it works with Eclipse right now. If it's likely to cause huge pain I'd rather stick with Subversion.

Anybody out there happily using Git and Eclipse? Anybody who tried it recently and gave up? Any alternatives to EGit (must work in Eclipse though)?

+1  A: 

AFAIK you can do basic push/pull/branch operations but not yet merge code from within Eclipse.

However TortoiseGit looks promising for a user friendly GUI in Windows.

faB
I can't use a Windows-only tool, but other people may find it useful.
Mirko Nasato
Apparently there is a commit GUI in GitX http://gitx.frim.nl/There is a very slick client called SmartGit http://www.syntevo.com/smartgit/index.html I'd love to hear if you get it working, seems like you can download a non-commercial version.Those work on Mac OS X.(Understanding, that you won't see full Git support in Eclipse any time soon..)
faB
+1  A: 

Have you try to go to: http://www.eclipse.org/egit/install.php

The temporary update site is: http://www.jgit.org/updates/

EDIT:

Yes, I've tried it, yes it's not perfect. Yet if you have setup your remote repository (such as in GitHub), the rest is OK. I don't ask you to forget the command line, but the Eclipse is enough for day to day job.

nanda
Have *you* tried it? That's what I'm asking.
Mirko Nasato
+2  A: 

I used EGit before, finding it such a distance from Subversive (an SVN Eclipse plugin) and gave up. However, currently I'm using Git and Eclipse, separately. I'm happy with the command line Git to do the "commit", "branch", "pull", "push" etc. Another command line tool called "tig" provides more powerful features for displaying the repository status.

Regarding GUI, "gitk" (installed together with Git) is a very nice tool for showing status of commits, branches etc. Also "git-gui" provides a simple GUI for committing changes.

When merging code, I usually use gVim or just Eclipse to do the job. There are also separate "professional" merge tools available.

OK, all these things seem to be such an overhead. However, it's worth doing to use Git.

xhh
I gave EGit a quick try, and it's still missing a *Synchronize* view, showing a visual diff for checking changes before committing them. That's already a deal breaker for me.So I agree that it's probably better to use `git` separately from command line for now.But the EGit guys are doing a great job and hopefully the plugin will improve in the future.
Mirko Nasato
Cooky, do you mean you could use Eclipse's merge view for Git merge conflicts? Or some kind of generic plugin to support diff/patches? That would be awesome. Could you expand a little bit on that? One thing I could do in Eclipse (with SVN) is edit the file before "Mark as resolved", it doesn't seem like you can edit with usual merge tools like P4Merge, opendiff and so on.
faB
faB: unfortunately it isn't. I meant also editing the "raw" file to merge code between "<<<<<<<" and ">>>>>>>". Maybe some cool Eclipse plugin like you mentioned exists, worth a searching :)
xhh
+1  A: 

See the offical EGit homepage for details about the Eclipse Git plugin.

It became an official Eclipse project last year. Two of the sessions at EclipseCon 2010 will be devoted to the plugin and issues surrounding it.

robinr