We use Git in our course to manage the code that we write. Git can do source control on any language, be it PHP, Python, C, etc. I even used Git to do source control on a book that I wrote - Dynamic Proxies in Java
NetBeans has great support for Git, but I recommend that you enable the toolbar. That way you have nice buttons you can press whenever you want to push or pull changes to your code. With these buttons we can compare our code to the remote repository, we can commit our changes and then push them to the remote repository, and we can even fetch or pull the remote changes back into ours. Pulling is important when we work in a team and need to merge other programmers' changes into our own. For our course, since you will likely be working by yourself, we won't need pull. (Although you are welcome to work with someone else - that is what programming is all about - programming is a team sport).
We hope you enjoyed this tutorial. If you did, you will also enjoy our courses. We suggest you start with Extreme Java - Advanced Java, followed by Extreme Java - Concurrency Performance for Java 8.
We deliver relevant courses, by top Java developers to produce more resourceful and efficient programmers within their organisations.
We can help make your Java application run faster and trouble-shoot concurrency and performance bugs...