git:Heroku存储库或找不到对象:



这是来自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停止工作。

可能是什么问题?

解决方法:

git push heroku master --no-verify

这会禁用Git-LFS预插钩。元数据文件是合作的,但没有上传二进制文件。

然后,按照Upendra的答案,可以使用构建包来下载文件。

在很多谷歌搜索之后,我发现问题在于Heroku。如果您使用的是Heroku,那么Heroku不支持LFS,您必须寻找替代方案。

我将长文本文件上传到Dropbox并从那里访问。Heroku绝对应该研究这个问题。

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

如果那不起作用,请尝试一下。此方法对我有用-https://github.com/raxod502/heroku-buildpack-git-lfs

最新更新