Creating a new branch

It is typical when you are using source control management to create separate branches for features or even for bug fixes. The idea is that the main or the master branch should always have the working code and you do development on the branches that may not be stable. When you finish a feature or fix a bug and know that the branch is stable, then you merge the code from that branch to the master branch.

To create a new branch, go to the Git Repositories view and right-click on the repository you want to branch. Then select the Switch To | New Branch... option:

Figure 3.25: Creating a new branch

Note that the Checkout ...

Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.