For this tutorial, we will act as a collaborator to that GitHub project, and have our own SSH public key added to the GitHub account. We will add our SSH private key using NetBeans. Along with repository cloning, NetBeans provides the option to create a fresh new project:
1. Select Team | Git | Clone..., and the Clone Repository wizard will be displayed.
2. Specify the path to the repository required in the Repository URL field, for example
[email protected]:mahtonu/chapter6demo.git
.3. Verify that Username is
git
.4. Browse the Private Key File location.
5. Add Passphrase, which you created during the key generation, and (optionally) select the Save Passphrase checkbox. The Remote Repository page at the Clone Repository wizard looks similar to the following screenshot:
6. Click on Next, and select the repository branch that needs to be fetched (downloaded) to your local repository at the Remote Branches page, for example...