Re: Transparently encrypt repository contents with GPG
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Mar 13, 2009, 10:46 UTC
- Message-ID
- <49BA39A1.9090203@drmicha.warpmail.net>
- In-Reply-To
- <fabb9a1e0903121434u4a3d71bdi6277071f54557a7e@mail.gmail.com>
Sverre Rabbelier venit, vidit, dixit 12.03.2009 22:34:
Show 12 quoted lines
> Heya, > > On Thu, Mar 12, 2009 at 22:19, Matthias Nothhaft > <matthias.nothhaft@googlemail.com> > What I need is a way to > automatically modify each file >> >> a) before it is written in the repository >> b) after it is read from the repository > > Have a look at smudging, you might not need to touch the git source > code at all ;). >
And people asked me not to be cryptic... even though the OP explicitely asked for encryption, of course ;)
"git help attributes" may help: look for filter and set attributes and config (filter.$name.{clean,smudge}) accordingly. smudge should probably decrypt, clean should encrypt.
BTW: Why not use an encrypted file system? That way your work tree would be encrypted also.
Cheers, Michael