我正在git
使用git-crypt
.
一个正常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
任何建议如何处理这个?