Book Image

NetBeans IDE 8 Cookbook

By : David Salter, Rhawi Dantas
Book Image

NetBeans IDE 8 Cookbook

By: David Salter, Rhawi Dantas

Overview of this book

<p>From the start to the end of a Java project's lifecycle, this book will show you how to perform many key tasks with the NetBeans IDE, uncovering more about mobile, desktop, and enterprise Java along the way.</p> <p>You will start by creating Java projects and learning how to refactor and use NetBeans tools to increase developer efficiency. You will then get a walkthrough of how to create a desktop application before covering JavaFX and mobile applications and how to use external services within them. Having seen how to create many different types of applications, you will then be shown how to test and profile them before storing them in revision control systems such as Git or Subversion. Finally, you will learn how to extend NetBeans itself by adding new features to the IDE.</p>
Table of Contents (19 chapters)
NetBeans IDE 8 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Branching a repository


When multiple people are working on a project, there is usually more than one piece of development being performed at a single time. It's a good practice to only commit production-ready code to the trunk or master branches of a repository, so we need somewhere else to commit code that we've not finished with. This is where branching and branches comes in.

A branch is a separate development stream that has been taken from the master/trunk branch at a certain point of time, usually with the intention of completing a specific piece of functionality, whether it's a bug fix or a new feature.

Within this recipe, we'll show how to create a branch within a Git repository, although the procedure is the same for other types of repositories.

Getting ready

To complete this recipe, we'll need to have cloned the cookbook-jarviewer repository from GitHub as described in the earlier recipe, Cloning a Git repository.

Ensure that this project is open within NetBeans before starting this...