/jgit-cookbook

Provides examples and code snippets for the JGit Java Git implementation

Primary LanguageJava

jgit-cookbook

Build Status

Provides examples and code snippets for the JGit Java Git implementation.

The JGit framework is rich and diverse, it has two layers, a low-level api and a higher-level set of porcelain commands.

This project tries to provide a collection of ready-to-run snippets which try to augment the existing JavaDoc and the User Guide

Getting started

Grab it
git clone git://github.com/centic9/jgit-cookbook
Build it and create Eclipse project files
mvn dependency:sources eclipse:eclipse package

Run it

Import the project into an Eclipse workspace and execute the snippets there.

Currently the following snippets are available

General Repository handling
Porcelain commands
Low-level API

Missing snippets

Sources

The following sources were used to build the snippets

Contribute

Please note that the list of snippets is not yet complete, probably never will. If you are missing things or have suggestions how to improve or add snippets, please either send pull requests or create issues.