简体   繁体   English

git push heroku master 错误:无法读取

[英]git push heroku master error: Could not read

I tried looking through some git push heroku master errors on this website, but I couldn't find one with my specific problem.我试着在这个网站上查看一些git push heroku master错误,但我找不到一个与我的特定问题有关的错误。 Hopefully you guys can help me.希望你们能帮助我。

When I run git push heroku master当我运行git push heroku master

error: Could not read 6f2abfc273544edc8fa8fbf18837a9ecec606bb2
fatal: bad tree object 6f2abfc273544edc8fa8fbf18837a9ecec606bb2
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
error: failed to push some refs to 'https://git.heroku.com/still-harbor-74893.git'
fatal: write error: Bad file descriptor`

I've read that Heroku sets a hard limit on file sizes, is that the problem?我读过 Heroku 对文件大小设置了硬限制,这是问题吗?

Check whether your github file is corrupted or not.检查您的 github 文件是否损坏。 Or maybe one of the file is corrupted.或者其中一个文件已损坏。 I can't think of anything else that might be the problem here.我想不出还有什么可能是这里的问题。

I'm guessing that your repository/current directory is broken.我猜您的存储库/当前目录已损坏。 If you think that your current working directory contains uncorrupted files, then you can always re-initialize Git in your working directory.如果您认为您当前的工作目录包含未损坏的文件,那么您始终可以在您的工作目录中重新初始化 Git。 For example:例如:

rm -rf .git
git init
git add .
git commit -m 'Re-initialize repo.'

And then try to push to heroku.然后尝试推送到heroku。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM