解决方案:
1、项目的.git文件内的目录.git/logs/refs/remotes/origin/,删除该错误的本地远程分支;
2、执行git pull --rebase即可
类似错误信息例子:
fatal: bad object refs/remotes/origin/xxx
fatal: bad object refs/remotes/origin/HEAD
fatal: bad object refs/remotes/origin/HEAD 2
完整错误信息例子:
From https://gitee.com/xxx/xxx
- [deleted] (none) -> origin/HEAD 2
fatal: bad object refs/remotes/origin/HEAD 2
error: https://gitee.com/xxx/xxx.git did not send all necessary objects
标签:origin,object,refs,xxx,remotes,fatal From: https://www.cnblogs.com/wujinhong/p/17788702.html