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

相关推荐
驯龙高手_追风4 小时前
Gitlab本地服务器搭建及配置-详细教程
git·github
czhc11400756635 小时前
6.11:halcon,Sqlserver;项目sql连接;git
git·sql·sqlserver
炸炸鱼.6 小时前
Git+Jenkins 基本使用:从入门到实战(知识点大全)
运维·git·jenkins
戴国进8 小时前
git stash 用法详解
git
木雷双雄78 小时前
Git 版本回退操作指南
git
m0_5791466519 小时前
已被 Git 追踪的本地修改文件如何实现临时忽略
git
糖少主21 小时前
WSL中使用Beyond Compare 3/4/5作为difftool
git·wsl·beyond compare·difftool
console.log('npc')1 天前
Git版本管控:git reset \+ git push \-f 原理、实操与避坑指南
git
恋喵大鲤鱼1 天前
git reflog
git·git reflog