Git:没有找到Heroku存储库或对象:

时间:2017-06-29 10:06:48

标签: node.js git heroku git-lfs

以下是来自Heroku主推命令的错误消息

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停止了工作。

可能是什么问题?

3 个答案:

答案 0 :(得分:7)

解决方法:

git push heroku master --no-verify

这将禁用git-lfs预推钩子。提交元数据文件,但不上传二进制文件。

然后,按照upendra的回答,可以使用buildpack来下载文件。

答案 1 :(得分:4)

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

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

答案 2 :(得分:1)

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

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