git-crypt

1
2
3
4
scoop install git-crypt

# 导出密钥
git-crypt export-key C:/Users/xxx/Downloads/gitCryptKey

git仓库

1
2
3
4
5
6
7
8
git-crypt init

# 创建规则文件:.gitattributes
*.md filter=git-crypt diff=git-crypt
*.html filter=git-crypt diff=git-crypt

# 解锁
git-crypt unlock 密钥文件路径