git pull/push 报错 "did not send all necessary objects"

发布时间 2023-10-25 11:15:00作者: yu7s

问题现象:

fatal: bad object refs/remotes/origin/comment-export
error: xxx.git did not send all necessary objects

出现原因:

git push 时中途出错,关闭了idea,没有push成功

 

解决措施:

本地找到  \.git\refs\remotes\origin 下的分支,删除报错分支,重新git pull就可以了