Git | Secure your sensitive data
Inhaltsverzeichnis
References
https://github.com/AGWA/git-crypt
https://blog.francium.tech/secure-your-credentials-using-git-crypt-1ccbacc483c7
https://buddy.works/guides/git-crypt
TL;DR
COMMON COMMANDS
git-crypt init git-crypt status git-crypt lock
GPG COMMANDS
git-crypt add-gpg-user GPG_USER_ID git-crypt unlock
SYMMETRIC KEY COMMANDS
git-crypt export-key OUTPUT_KEY_FILE git-crypt unlock KEY_FILE
Installation
$ brew install git-crypt
Prepare Repository
$ cd <repository>
$ git crypt init Generating key…
Create .gitattributes
file
secretfile filter=git-crypt diff=git-crypt *.key filter=git-crypt diff=git-crypt secretdir/** filter=git-crypt diff=git-crypt .gitattributes !filter !diff # prevent file from encrypted