嗨,我想用 git 保存数据,加密(在某些平台上,如bitbucket或github)。因此问题:
我正在寻找不同的轻松方式:
如何在 bitbucket (/github)上设置加密存储库?现在,我是 git 的新手,因此非常感谢包含所有必要步骤或分步说明的说明!
git-crypt
我找到了git-crypt,但在网站上提到它用于单个文件加密。如果有人想加密整个存储库,他们会将其转发到git-remote-gcrypt。
git-remote-gcrypt
在他们的README.rst 中,他们把它写得很简单
快速开始
git remote add cryptremote gcrypt::rsync://example.com:repo
git push cryptremote master
> gcrypt: Setting up new repository
> gcrypt: Remote ID is :id:7VigUnLVYVtZx8oir34R
> [ more lines .. ]
> To gcrypt::[...]
> * [new branch] master -> master
Run Code Online (Sandbox Code Playgroud)
或低于
例子
# notice that the …Run Code Online (Sandbox Code Playgroud)