#105·git-crypt

在具有加密提交文件的仓库中,使用 `git worktree add` 会导致加密失败。

作者: ghost创建于 2017年1月5日更新于 2026年9月14日

初始化

$ git init example $ cd example/ $ git crypt init $ git crypt exampleport-key ../example.gitcrypt $ cat .gitattributes secretfile filter=git-crypt diff=git-crypt *.key filter=git-crypt diff=git-crypt