Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the git branch on eclipse

This is the first time I do this. I imported a git project in eclipse. Then I used the shell to create another branch and checkout to the new branch.

Is refreshing the imported project in Eclipse enough to tell Eclipse that we are working on the new created branch?

thanks

like image 259
user3242743 Avatar asked Jul 09 '14 09:07

user3242743


People also ask

How do I change Git branch in Eclipse?

To create a new branch in your repository, right click a shared project and navigate to Team => Switch to => New Branch… from the context menu. Select the branch you want to create a new branch from, hit New branch and enter a name for the new branch. The new branch should appear in the branch selection window.

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.


1 Answers

Right-click your project and select TeamBranch to create new branches or to switch between existing branches. You can also switch branches in the History view.

like image 139
love Avatar answered Sep 22 '22 09:09

love