git clone拉取代码错误解决方法

【问题描述】:

Cloning into 'qcm6490-la-3-0'...
remote: Counting objects: 163552, done
remote: Finding sources: 100% (163552/163552)
remote: Total 163552 (delta 6131), reused 163552 (delta 6131)
Receiving objects: 100% (163552/163552), 12.66 GiB | 23.24 MiB/s, done.
Resolving deltas: 100% (6131/6131), done.
fatal: did not receive expected object c39f51911bb11d7f73e257fa4070bd67db42c692
fatal: fetch-pack: invalid index-pack output

【解决方案】:
git clone命令增加–depth 1参数重新拉取
在这里插入图片描述

你可能感兴趣的:(git学习,git)