brew install git-crypt
git crypt init
# 加密 encrypted
link/.gauth filter=git-crypt diff=git-crypt
link/.ssh/** filter=git-crypt diff=git-crypt
# 避免加密 not encrypted
.gitignore !filter !diff
.gitattributes !filter !diff
git-crypt status
git-crypt export-key git-crypt.key
# ignore
# .gitattributes
git-crypt.key
brew install git-crypt
git-crypt unlock git-crypt.key
当不小心把某个文件设成了加密,或者觉得某个文件没必要再进行加密时,我们可以通过如下的步骤去除对它的加密配置: