Git: Initializing
See Also
The IDE enables you to initialize a Git repository from existing files that are not in source control yet.
To initialize a Git repository:
- In the Projects window, select an unversioned project and choose either:
- Versioning > Initialize Git Repository from the node's
right-click menu.
- Team > Git > Initialize from the
IDE's main menu.
- In the Initialize a Git Repository dialog box, specify the path to the repository you are going to store your versioned files or click Browse and browse for the directory required.
- Click OK.
A .git subfolder is created in the folder you specified in step 2 (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 (Ctrl-4).
- All the project files are marked Added in your Working Tree.
- After you initialized the Git repository, you either add files or directly commit them to the Git repository.
- See Also
- About Projects
- About Git Support
Legal Notices