Git and GPG

By CK. Date: . Last updated: .

Git can show diffs of gpg encrypted files.

Global

git config --global diff.gpg.textconv "gpg --no-tty --decrypt"

or in ~/.gitconfig

[diff "gpg"]
    textconv = gpg --no-tty --decrypt

.gitattributes in the project directory:

*.gpg filter=gpg diff=gpg
*.asc filter=gpg diff=gpg

Tech

git

rsync