# Git: Initialize a Git Repository Dialog Box

The Initialize a Git Repository dialog box enables you to initialize a Git repository either from existing files that are not in source control yet, or from an empty directory.

Element | Description
--- | ---
Repository root path | Specify the path to the intended root of the repository.

Use the buttons to perform the following tasks.

Element | Description
--- | ---
Browse | Browse for the directory required.
OK | Click to initiate the Git initialize action.

Note:

A `.git` subfolder is created in the folder you specified (your NetBeans project folder by default), which is your Git repository where all the data of your project snapshots are stored. Git starts versioning all files in the folder you specified.

You can view files being added to the repository from the Output window.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.