git fetch-pack[--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] <仓库> [<多个引用>…] 描述 通常情况下,您需要使用git fetch,它是该命令的更高级封装。
由于git fetch-pack: expected shallow list 是一个相对不常见的内部错误,上述解决方法可能需要根据具体情况进行调整。如果问题持续存在,可能需要更深入地调查 Git 的内部机制或寻求专业的技术支持。
首先拉去项目最后一次提交git clone --depth=1 项目地址; 拉取全部项目内容git fetch --unshallow, 一般不大的项目都可以拉取下来了; 如果步骤2还是报错fatal: fetch-pack: invalid index-pack output,那么可以进入项目目录执行git fetch --depth=100(如果还是报错那就把数字调小),执行多次每次增加一段; 例如: ...
git fetch-pack[--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] <repository> [<refs>…] DESCRIPTION Usually you would want to usegit fetch, which is a higher level wrapper of this comman...
unsigned lock_pack:1; unsigned use_thin_pack:1; unsigned fetch_all:1; unsigned stdin_refs:1; unsigned diag_url:1; unsigned verbose:1; unsigned no_progress:1; unsigned include_tag:1; unsigned stateless_rpc:1; unsigned check_self_contained_and_connected:1; unsigned self_contained_and_connecte...
git fetch-pack[--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] <repository> [<refs>…] DESCRIPTION Usually you would want to usegit fetch, which is a higher level wrapper of this comman...
fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output 方法一 首先关闭 core.compression git config --global core.compression 0 然后使用depth来下载最近一次提交 git clone --depth 1 <url地址> 使用这个命令来获取所有的分支信息()...
unsigned keep_pack:1; unsigned lock_pack:1; unsigned use_thin_pack:1; unsigned fetch_all:1; unsigned stdin_refs:1; unsigned diag_url:1; unsigned verbose:1; unsigned no_progress:1; unsigned include_tag:1; unsigned stateless_rpc:1; unsigned check_self_contained_and_connected...
git/fetch-pack.h Go to file Copy path 95 lines (85 sloc)2.85 KB RawBlame #ifndefFETCH_PACK_H #defineFETCH_PACK_H #include"string-list.h" #include"run-command.h" #include"protocol.h" #include"list-objects-filter-options.h" structoid_array; ...
#include "fetch-pack.h" #include "remote.h" #include "run-command.h" #include "connect.h" #include "transport.h" #include "version.h" #include "prio-queue.h" #include "sha1-array.h" static int transfer_unpack_limit = -1; ...