Provides examples and code snippets for the JGit Java Git implementation
Provides examples and code snippets for the JGit Java Git implementation
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 can be a bit intimidating at first as there are lots of classes, some of which are not relevant for most tasks.
This project tries to provide a collection of ready-to-run snippets which provide a quick start for building functionality using JGit.
Please make sure to take a look at the nicely written introduction and also use the existing JavaDoc and the User Guide as well, as they are well done and provide detailed information and a general overview of JGit respectively.
Note: Please use sites such as http://stackoverflow.com for general questions about JGit usage, not issues in this project. Issues should be used for problems with snippets and suggestions of missing snippets. Snippets from good answers on stackoverflow can then be included here, naturally.
You will need at least JDK 17 for JGit 7.0 and newer.
Grab itgit clone https://github.com/centic9/jgit-cookbook.git
Build it and create Eclipse project files
When using Maven
mvn dependency:sources eclipse:eclipse package
When using Gradle
./gradlew eclipse check
Each snippet is a small standalone Java application, so you can simply
import the project into your favourite IDE and execute the snippets there.
No open issues yet, or sync has not completed.