This post gives a detailed introduction of how to use the JGit API to diff revisions and create patches of a Git repository.| Code Affine
Use the REST API to create, manage and control the workflow of public and private GitHub repositories.| GitHub Docs