1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 10:02:10 +02:00
tldr/pages/common/yadm-git-crypt.md
shelton louis 5e4d5d2750
yadm: add pages (#13920)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2024-10-01 21:05:50 +02:00

500 B
Executable file

yadm git-crypt

Git Crypt enables transparent encryption and decryption of files in a git repository. See also: git-crypt. More information: https://github.com/AGWA/git-crypt.

  • Initialize repo to use Git Crypt:

yadm git-crypt init

  • Share the repository using GPG:

yadm git-crypt add-gpg-user {{user_id}}

  • After cloning a repository with encrypted files, unlock them:

yadm git-crypt unlock

  • Export a symmetric secret key:

yadm git-crypt export-key {{path/to/key_file}}