当我试图使用稀疏过滤器从git存储库克隆一个文件夹“香蕉”时,我得到了以下错误;
git clone --depth 1 --filter=blob:none --sparse https://github.com/gitexpert/testGithub.git
cd testGithub
git sparse-checkout set bananaGIT版本: 2.25.1
错误日志:
Cloning into 'testGithub'...
fatal: cannot change to '://github.com/gitexpert/testGithub.git': No such file or directory
error: failed to initialize sparse-checkout发布于 2022-09-26 15:32:24
@satbekmyrza提出的解决方案对我有效。我将git从2.25.1升级到2.37.3,现在是稀疏克隆工作。
不幸的是,在编写本报告时,通过Ubuntu上的标准包repos安装的git版本是2.25.1。为了升级到高于2.25.1的版本,必须从PPA安装git,如下载Linux和Unix (git-scm.com)中所述。
https://stackoverflow.com/questions/72223738
复制相似问题