I am using Netbeans 7.4 as my IDE. This version already has Git plugin. So what you need to do for preparation is github account. You can create your own account if you do not already have on github site.
Now we ready for the next step 🙂
- Create new repository https://github.com/new. You can make it public or private repository.
- Go to your project. Right click on the project name >> versioning >> Initialize git repository. Choose location for your local repository.