Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse + Git - How to get toolbar?

I've got Eclipse 3.7.2 installed and working fine. I installed the git plugins (see below).

My installed software

Right clicking my active project and clicking on "Team" gives me the options to pull/push/commit and more.

I have set my git executeable to msysgit (C git).

The docs told me that to add git to the toolbar I should look in Window->Customize Perspective..., but I couldn't anything related to git there, not even under the "Command Groups Availability" section.

How do I add push, pull & commit buttons to my Eclipse toolbar?

no Git in there

like image 881
user1438003 Avatar asked Jul 28 '12 07:07

user1438003


People also ask

How do I get Git options in Eclipse?

Click on the Window menu bar option, then choose Preferences. Type “git” in the search bar, then choose that path 'Team > Git > Configuration. Click Add Entry. Enter user.name as the Key, and your GitHub username as the Value, then add another entry with user.

How can I see my Git branch in Eclipse?

However, Eclipse Preferences > General > Appearance > Label Decorations > check Git did work. This made current brench visible in package view.

How do I open a Git repository in Eclipse?

Open Eclipse and choose Import –> Projects from Git (with smart import) Choose the Clone URI option in the Git import wizard and click Next. Confirm the URI, Host and Repository path parameters and click Next. Choose the Git branches to clone from the remote repository and click Next.


3 Answers

Stumbled on this answer, but found this works:

Install the Egit plugin, add the Git command group in Customize Perspective|Command Groups Availability, not the (pretty much useless) "Team", then check "Git" in Customize Perspective|Tool Bar Visibility

http://www.vogella.com/tutorials/EclipseGit/images/xgit_toolbar10.png.pagespeed.ic.7xMapnhWrH.png

like image 194
tpdi Avatar answered Sep 20 '22 14:09

tpdi


First install EGit from http://download.eclipse.org/egit/updates. Then you should find the Git command group and be able to activate it. msysgit isn't integrated with Eclipse.

See "Activating the Git toolbar "

http://www.vogella.com/tutorials/EclipseGit/images/xgit_toolbar10.png.pagespeed.ic.7xMapnhWrH.png

like image 24
Matthias Sohn Avatar answered Sep 16 '22 14:09

Matthias Sohn


Nothing worked and I had begun getting an unrelated error on startup with a troubleshooting step requiring reinstall.

This time I downloaded Eclipse for Mobile Developers, and since then I have added my other packages and it's all working, but clicking the commit thing and clicking the arrow to merge my changes (with comment) results in nothing.

It isn't committed nor is an error given.

like image 36
user1438003 Avatar answered Sep 16 '22 14:09

user1438003