Re: Transparently encrypt repository contents with GPG
- From
- bigbear <urs.rau@gmail.com>
- Date
- Apr 21, 2012, 17:25 UTC
- Message-ID
- <1335029110871-7487506.post@n2.nabble.com>
- In-Reply-To
- <978bdee00903121419o61cd7a87rb55809796bd257d7@mail.gmail.com>
Matthias Nothhaft wrote
Show 20 quoted lines
> > Hi, > > I'm new to Git but I really already love it. ;-) > > I would like to have repository that transparently encrypts and > decrypts all files using GPG. > > 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 > > Is there a way to get this work somehow? Can someone give me some > hints where I need to begin? > > regards, > Matthias > >
Have come across this on my own search for an encrypted git repo. Matthias it looks as if somebody has come up with a "working" system that uses the 'smudge & clean' filter features of git. Seems to me that to use it for storing the repo on a non trusted or possibly public git repo with some private content in the files this seems to be a workable solution.
Transparent Git Encryption https://gist.github.com/873637 and/or possibly https://github.com/shadowhand/git-encrypt
The way to do this is to use git's "smudge" and "clean" filters, but it's not necessarily recommended for reasons that are explained here by Junio C Hamano, the maintainer of git:
http://article.gmane.org/gmane.comp.version-control.git/113221
-- View this message in context: http://git.661346.n2.nabble.com/Transparently-encrypt-repository-contents-with-GPG-tp2470145p7487506.html Sent from the git mailing list archive at Nabble.com.