O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Initializing a Git repository

Initializing a Git repository is often one of the first tasks that is performed when starting a new project. Initializing a repository creates the local repository and allows local source control actions to be performed such as checking in code and viewing a file's history.

In this recipe, we'll see how NetBeans allows us to initialize a Git repository for a specific project and how this gives us benefits over using the Git command-line tools.

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.

We will be initializing the JarViewer project that we created in Chapter 4, Developing Desktop Applications ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required