如果使用git clone -depth=1之后,只拿到一个分支下的一个commit.
对于拿下来的这个仓库,只能进行本地操作,不能进行远程推仓或更新.
如果真要那样做的话,就会发生下面类似的错误:
-
fatal: protocol error: expected old/new/ref, got 'shallow 0fb85fb3078e83db2b88b48a943ca05e2ab49903'
-
fatal: The remote end hung up unexpectedly
-
Counting objects: 3339, done.
-
Delta compression using up to 4 threads.
-
Compressing objects: 100% (1808/1808), done.
-
error: pack-objects died of signal 13
-
error: failed to push some refs to 'git@************git'
阅读(3518) | 评论(0) | 转发(0) |