libgit2 allows custom backends, should consider this with e.g S3 maybe gitoxide also provides such a backend?