如何手动解密通过git crypt加密的文件

Sen*_*eep 5 git encryption continuous-integration

我正在使用从github下载zip存档的CI构建。在构建时,我需要使用gpg解密使用git-crypt加密的文件。但是,CI构建无法解密文件,因为它不是克隆的目录树,因此我无法运行“ git crypt unlock”。

我看到了.git-crypt树,但是gpg解密文件的手动步骤是什么?

Dom*_*ano 4

假设您拥有用于加密目录的 GPG 密钥,只需执行以下操作:

cd encrypted-directory
git init
git-crypt unlock gpg.key
Run Code Online (Sandbox Code Playgroud)