Getting ready

For all the examples throughout the book, we are using the jgit repository; you can either clone it or go to one of the clones you might already have.

Clone the jgit repository as follows:

$ git clone https://git.eclipse.org/r/jgit/jgit chapter6 
$ cd chapter6 

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.