Git:Heroku 未找到存储库或对象:

Git:Heroku Repository or object not found:

这是来自 Heroku master push 命令的错误消息

Git LFS: (0 of 5 files) 0 B / 167.50 MB                                                                                                    
batch response: Repository or object not found: https://git.heroku.com/xxxx-brushlands-xx267.git/info/lfs/objects/batch
Check that it exists and that you have proper access to it
error: failed to push some refs to 'https://git.heroku.com/xxxx-brushlands-xx267.git'

向 Git LFS 添加了一个长文本文件(git 用于大文件),之后 Heroku 停止工作。

可能是什么问题?

经过大量谷歌搜索后,我发现问题出在 Heroku 上。如果您使用的是 Heroku,那么 Heroku 不支持 LFS,您必须寻找替代方案。

我将我的长文本文件上传到保管箱并从那里访问它。 Heroku 绝对应该关注这个问题。

我找到了在 Heroku 中使用 Git LFS 问题的临时解决方案。我只是把它放在这里以防万一人们还在寻找它 - https://github.com/git-lfs/git-lfs/issues/805

如果这不起作用,请试试这个。这个方法对我有用 - https://github.com/raxod502/heroku-buildpack-git-lfs

解决方法:

git push heroku master --no-verify

这会禁用 git-lfs 预推送挂钩。已提交元数据文件,但未上传二进制文件。

然后,根据 upendra 的回答,可以使用 buildpack 下载文件。