小编ifi*_*iht的帖子

为什么 git submodule update 失败并显示“fatal: remote error: upload-pack: not our ref”?

我有一个带有多个子模块的 git repo。我尝试删除和添加有问题的子模块(scopatz 的 nanorc),但是在删除和重新添加过程中错误仍然存​​在。当我将 repo 克隆到一个新位置时,我会自动使用 更新它git submodule update --init --recursive,这是失败时,但仅适用于此子模块......以下是命令的相关输出GIT_TRACE=2

23:01:26.918691 run-command.c:1569      run_processes_parallel: preparing to run up to 1 tasks
23:01:26.933567 run-command.c:1601      run_processes_parallel: done
23:01:26.934373 run-command.c:646       trace: run_command: git gc --auto
23:01:26.966805 git.c:344               trace: built-in: git gc --auto
23:01:26.991059 git.c:344               trace: built-in: git rev-parse --local-env-vars
23:01:27.015684 git.c:344               trace: built-in: git rev-parse --local-env-vars
23:01:27.032282 git.c:344               trace: built-in: git symbolic-ref -q HEAD
23:01:27.053948 git.c:344               trace: built-in: git config --get branch.master.remote
23:01:27.073636 git.c:344               trace: built-in: …
Run Code Online (Sandbox Code Playgroud)

git github git-submodules

16
推荐指数
4
解决办法
8886
查看次数

标签 统计

git ×1

git-submodules ×1

github ×1