Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show current git branch in Eclipse toolbar

Tags:

git

eclipse

egit

Is there a plugin or some setting in EGit to show the current git branch in the toolbar of eclipse so that it's visible on which branch you're working?

like image 212
James Avatar asked Oct 28 '15 08:10

James


People also ask

How do I pull a branch from github 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.


1 Answers

Like Sasikanth says there is no toolbar in EGit that shows the current branch.

Since there usually are multiple repositories within your IDE, a toolbar that shows the current branch of a single repository would probably often choose the wrong repository to display.

But if you have an idea how such a toolbar could work you may want to open an enhancement request.

In the meanwhile you can either use the Repositories View to see the current branch of each repsoitory or look at the Pakckage Explorer or Project Explorer. The projects are decorated with the repository they belong to and the current branch that is checked out.

Package Explorer showing EGit decorations

Here the project belongs to the gitexample repository on branch master.

like image 174
Rüdiger Herrmann Avatar answered Oct 13 '22 01:10

Rüdiger Herrmann