GenerousLabs / brainstorming-encrypted-git

Brainstorming how to build encrypted git remotes on top of isomorphic-git
GNU Affero General Public License v3.0
0 stars 0 forks source link

How does git-remote-gcrypt work? #1

Open chmac opened 3 years ago

chmac commented 3 years ago

This issue is to track discussion around git-remote-gcrypt and if we could achieve interop with its encryption format.

Having dug into the code, read the docs, and run some local tests, I think it works like this:

Effectively, a git hosting service is used as a store of the latest "encrypted" git repository. So any pushes must upload the whole commit history again, because from GitHub's perspective, there's only ever 1 single commit.

Pros

Cons

chmac commented 3 years ago

I pushed an example repo here so it's clearer what the info above means.