git:无法推送refs到远端。您可以试着运行“拉取”功能,整合您的更改。

问题:

remote: error: inflate: data stream error (incorrect header check)

remote: error: unable to unpack 55a7ec3fca1379256bd56f76c7c9c491602dc0f0 header
remote: fatal: loose object 55a7ec3fca1379256bd56f76c7c9c491602dc0f0 (stored in D:/gitea/data/gitea-repositories/zhaoweiwei/nergy_storage.git/objects/55/a7ec3fca1379256bd56f76c7c9c491602dc0f0) is corrupt
error: remote unpack failed: unpack-objects abnormal exit
To http://10.83.42.206:3000/zhaoweiwei/nergy_storage.git
! remote rejected oneUpdate -> oneUpdate (unpacker error)
error: failed to push some refs to 'http://10.83.42.206:3000/zhaoweiwei/nergy_storage.git'

解决办法:

删除.git/objects/55/a7ec3fca1379256bd56f76c7c9c491602dc0f0文件,并重新pull

相关推荐
Winlifes1 天前
我给 Codex 做了一个 Git 面板:分支树、提交历史和工作区操作
git
郑州光合科技余经理2 天前
同城外卖小程序开发:下单成功后,后台导出能不能对上用户端状态
开发语言·前端·git·后端·uni-app·php·ai编程
我命由我123452 天前
Git 推送报错:error: src refspec main does not match any
运维·git·gitee·github·运维开发·学习方法·版本控制
Lcr3s3 天前
Git基础之(0):如何在Ubuntu(Linux)上安装git
git
玄芯散人3 天前
【筑基·058】Git协作工作流:冲突解决和PR流程
git·版本控制·团队协作
寺中人3 天前
Git 版本控制完全入门指南:从安装到实战,提交 + 分支 + 协作 + 冲突解决全拆解
git·开发工具·版本控制·团队协作·代码管理
荔枝梅梅4 天前
新手程序员 SSH 第一课:从 Git 仓库连接失败理解 SSH 协议与密钥配置
git
玄芯散人4 天前
【筑基·057】Git代码时光机:版本控制入门到分支管理
git·版本控制·嵌入式开发
szephyr4 天前
Git 分支管理实战:feature/release/hotfix 怎么用才不乱
git·分支管理·团队协作·工作流·hotfix
一木 之林4 天前
手搓家庭服务器:二手装机、Docker部署、端口映射与frp内网穿透
服务器·人工智能·git·编辑器