简体   繁体   English

GitKraken:推送许多文件时出错(块 Header 问题)

[英]GitKraken: Error when pushing many files (Chunk Header Problem)

I am using GitKraken 7.4.0.我正在使用 GitKraken 7.4.0。 on Windows 10 and with Unity 2019.3 and we use GitLab.在 Windows 10 和 Unity 2019.3 上,我们使用 GitLab。 Everything usually works fine when pushing and pulling commits but I currently have a lot of PNGs due to animations that I need to commit.推送和拉取提交时,一切通常都可以正常工作,但由于我需要提交动画,我目前有很多 PNG。 Anytime I try to commit these, I get "failed to write chunk header: The server returned an invalid or unrecognized response."每当我尝试提交这些内容时,我都会“无法写入块 header:服务器返回了无效或无法识别的响应。”

This happened before when I needed to commit a couple of voice lines.这发生在我需要提交几条语音线之前。 If I reduce the files to fewer commits, it works fine.如果我将文件减少到更少的提交,它工作正常。 For example: If I try to push 200 PNGs (they're not big, around 600kb) I get the error.例如:如果我尝试推送 200 个 PNG(它们不大,大约 600kb),我会收到错误消息。 But if I commit four times with 50 PNGs, it works.但是,如果我用 50 个 PNG 提交四次,它就可以工作。

Is there a way to fix this, because breaking up hundreds of PNGs every time is very cumbersome.有没有办法解决这个问题,因为每次分解数百个 PNG 非常麻烦。 I already thought of uploading the files to Google Drive so the others can download them there, but that is equally annoying.我已经考虑将文件上传到 Google Drive,以便其他人可以在那里下载,但这同样令人讨厌。

Any help would be appreciated.任何帮助,将不胜感激。 Thank you very much!非常感谢!

Thanks to @derHugo I managed to solve the issue.感谢@derHugo,我设法解决了这个问题。 If anyone else is having this issue and is also using Unity, here is how you can resolve it:如果其他人遇到此问题并且也在使用 Unity,您可以通过以下方式解决该问题:

Make sure you have Git downloaded and installed.确保您已下载并安装 Git。 Minimum:最低限度:

Git version 2.3+
LFS version 2.0.1+

Now activate LFS in your GitKraken settings.现在在您的 GitKraken 设置中激活 LFS。 Find your .gitattributes file and copy-paste these contents into it, save it.找到您的 .gitattributes 文件并将这些内容复制粘贴到其中,保存。 It should work now.它现在应该可以工作了。

Check out the GitKraken Documentation for more details:查看 GitKraken 文档了解更多详细信息:

https://support.gitkraken.com/git-workflows-and-extensions/intro-and-requirements/#git-lfs-requirements https://support.gitkraken.com/git-workflows-and-extensions/intro-and-requirements/#git-lfs-requirements

https://support.gitkraken.com/git-workflows-and-extensions/intro-and-requirements/#git-lfs-requirements https://support.gitkraken.com/git-workflows-and-extensions/intro-and-requirements/#git-lfs-requirements

I had the same behavior, and it seems that the issue is caused by GitKraken.我有同样的行为,似乎问题是由 GitKraken 引起的。 I am using GitKraken (8.8.0) and I don't use Unity.我正在使用 GitKraken (8.8.0),但我不使用 Unity。

I don't know what causes the issue, but my solution was to push from the terminal with:我不知道是什么导致了这个问题,但我的解决方案是从终端推送:

git push origin master

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 推送到 Google Artifact Repository 时出现身份验证错误 - Auth error when pushing to Google Artifact Repository ##[错误]被拒绝:将 docker 图像推送到 AWS ECR 时未授权 - ##[error]denied: Not Authorized when pushing docker image to AWS ECR gcloud app deploy error too many files under.cache - gcloud app deploy error too many files under .cache Github 镜像:如何在推送时设置默认分支 - Github mirroring: How can I set default branch when pushing 将代码推送到生产环境时保持服务器网关处于活动状态 - Keep server gateway alive when pushing code to production 将 docker 图片推送到 GCR 时授权失败 - Failed to authorize when pushing docker image to GCR 推送到云时 AWS Amplify 访问被拒绝 - AWS Amplify Access Denied when Pushing to Cloud 部署后反应白屏,错误404 chunk.js - React white screen after deploy, error 404 chunk.js Django 在 AWS S3 中托管 static 个文件,在尝试访问管理字体文件时导致 CORS 错误 - Django hosting static files in AWS S3 causing CORS error when trying to access admin font files 无法到达 AWS Lambda web 控制台,块丢失错误 - Can't get to AWS Lambda web console, chunk missing error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM