远程拒绝主服务器->主服务器(不允许进行浅更新)错误:无法推送某些裁判

时间:2020-08-27 00:00:16

标签: git github push master

在新克隆的github项目的补丁的第一个git push上看到此错误:

 ! [remote rejected] master -> master (shallow update not allowed)
error: failed to push some refs to 'https://github.com/org/myproject.git'

如何修复它,可能是什么原因?

有人建议,这个问题与Remote rejected (shallow update not allowed) after changing Git remote URL无关。

1 个答案:

答案 0 :(得分:0)

一个可能的原因可能是您最初使用的是分支

git clone --depth=1 ...link... 

如果是这样,修复很容易;

git fetch --unshallow origin
相关问题