On a StackOverflow question asking about example source code, one answer pointed to a very good resource: jgit-cookbook.
JGit is a lightweight pure Java library implementing the Git version control system. It is used by the EGit team provider in Eclipse among other places.
References
- jgit-cookbook
- An Introduction to the JGit Sources
- JGit: Cannot find a tutorial or simple example
- JGit
