Re: can Git encrypt/decrypt .gpg on push/fetch?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 9, 2011, 19:05 UTC
- Message-ID
- <7vvct1tu3n.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20110909184229.GE28480@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 11 quoted lines
>> B) Keep blobs encrypted, checkout decrypted >> - Use Use "*.gpg filter=gpg" in your attributes and >> [filter "gpg"] >> smudge = gpg -d >> clean = gpg -e -r yourgpgkey >> in your config. >> >> I use A on a regular basis. B is untested (but patterned after a similar >> gzip filter I use). You may or may not have better results with "gpg -ea". > > Yeah, I think that would work but have never tried it either.
Unless "gpg -e" encrypts the same cleartext into the same cyphertext every time, the above "clean" filter probably wouldn't be very useful.