git pull 出错 fatal: bad object refs/remotes/origin/xxxxx

使用git pull时出现以下问题
fatal: bad object refs/remotes/origin/xxxxx
error: https://github.com/xxxxxx.git did not send all necessary objects
解决办法

删除项目目录 .git\refs\remotes\origin 下面的所有文件
在 git pull

参考链接

How to handle git gc fatal: bad object refs/remotes/origin/HEAD error?

git 报错 fatal: bad object refs/remotes/origin/xxx 解决方法

猜你喜欢

转载自blog.csdn.net/qq_25482087/article/details/139021346