码迷,mamicode.com
首页 > 其他好文 > 详细

git clone报错处理

时间:2021-01-26 12:41:49      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:uil   osi   abort   err   tin   tps   com   --   ring   

git clone过大的仓库时会报以下错误

remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header

解决办法是分层clone

$ git clone --depth 1 https://github.com/dogescript...
$ git remote set-branches origin ‘remote_branch_name‘
$ git fetch --depth 1 origin remote_branch_name
$ git checkout remote_branch_name

git clone报错处理

标签:uil   osi   abort   err   tin   tps   com   --   ring   

原文地址:https://www.cnblogs.com/blue-rain/p/14325260.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!