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

Cloning a Git repository


In the previous recipe, Initializing a Git repository, we saw how to create a new local Git repository. This is a useful technique when starting new projects; however, most of the time we aren't starting new projects, but are instead working on existing projects.

In this recipe, we'll see how to clone a Git repository so that we can work on a project that is already stored in the source control.

Getting ready

You can use any of the Java download bundles of NetBeans (Java SE, Java EE, or the All bundle) to complete this recipe as they all have Git support built into NetBeans.

To complete this recipe, you will need to create a fork of the JarViewer repository on GitHub. A fork is essentially your own copy of a repository that you can make changes to without affecting the original product.

Tip

With Git, it is possible to clone both remote repositories (such as on GitHub) and repositories that are stored on the local filesystem. A local Git repository functions exactly the...