我正在对使用git的git-crypt dir执行稀疏签出。
一个普通的git clone和一个git-crypt unlock一起工作。
由于我正在运行sparse签出,所以我也希望执行部分git-crypt unlock。
跑后
g sparse-checkout init
g sparse-checkout add <dir1>
g checkout master
g sparse-checkout add <dir2>
g checkout master注意:g sparse checkout <dir1> <dir2后面跟着g checkout master 不工作,因为它似乎只获取<dir2>
我运行git-crypt unlock
然而,这是不幸的失败,因为它产生了大量的错误,如
error: pathspec 'path/to/some/other/encrypted/file/not/included/in/my/sparse/checkout' did not match any file(s) known to git对此有什么建议吗?
发布于 2021-10-16 09:56:08
对此没有直接的解决办法。
可以做的事情是使用来自git的多个密钥,一个用于每个稀疏签出的密钥,另一个用于整体加密的密钥。
博士:https://github.com/AGWA/git-crypt/blob/master/doc/multiple_keys.md
替代解决方案和我的信息来源:https://github.com/AGWA/git-crypt/issues/155
最好的解决方案是目前使用多个键。
https://stackoverflow.com/questions/69594369
复制相似问题