Your Git Repository in a Database: Pluggable Backends in libgit2

Libgit2 provides the ability to store data in .git directory to relational or a NoSQL database, or an in-memory data structure.