Jgit-examples is a project mainly written in Java, it's free.
some examples how to use jgit
This project contains some examples how to use jgit (http://eclipse.org/jgit/).
Documentation to jgit can be found at http://wiki.eclipse.org/JGit/User_Guide. I found it only by accident because the project page has now link to it.
I will share my experiences while working out how to use the jgit library. I will collect short sample programs showing how some functions can be used.
Anybody who also has some sample codes is invited to contribute.