Tracking ASCII armored PGP/GPG keys with Git
Since PGP keys are not something that can be merged as text and are quite meaning less in a diff this trick allows you to have a human readable version of the changes.
Add this to your Git config (global $HOME/.gitconfig
or per repo ./.git/config
):
[diff "pgp"]
textconv = gpg -v
Now in the repo that contains a PGP key simply add this to a .gitattributes
file:
*.asc diff=pgp -merge
Written by Devin Weaver
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#