How to show diffs for gpg-encrypted files? Git supports showing diffs for encrypted files, but has to be told to do so. git config --global diff.gpg.textconv "gpg --no-tty --decrypt" echo "*.gpg filter=gpg diff=gpg" >> .gitattributes echo "*.asc filter=gpg diff=gpg" >> .gitattributes