O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting the history of a file

So far we've seen how to initialize source code repositories and how we can get a working copy for us to develop against.

In this recipe, we'll use NetBeans to query a Git repository so that we can view the history of files within it. We'll concentrate on Git within this recipe as it is probably one of the most widely used source code control systems at the moment. You can apply the principles for other types of repository as the general procedures are the same.

Getting ready

To complete this recipe, we'll need to have cloned the cookbook-jarviewer repository from GitHub as described in the earlier recipe, Cloning a Git repository.

Ensure that this project is open within NetBeans before starting this recipe.

How to do ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required