git,Heroku:pre-receive hook谢绝了 [英] git, Heroku: pre-receive hook declined

查看:178
本文介绍了git,Heroku:pre-receive hook谢绝了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设置一个git存储库并尝试将其链接到Heroku。当我运行这个命令时,你可以使用命令:

pre $ g $ push heroku master
code $



我收到

 计数对象:7,完成。 
使用多达2个线程的增量压缩。
压缩对象:100%(5/5),完成。
写入对象:100%(7/7),714字节,完成。
合计7(增量1),重用0(增量0)

-----> Heroku接收推送

!由于无法识别的错误,Heroku推送被拒绝。
!如果问题仍然存在,我们已收到通知,请参阅http://support.heroku.com。


到git@heroku.com:morning-stream-3712.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:无法将某些参考文献推送到'git@heroku.com:morning-stream-3712.git'

我不太确定其他信息会对您有什么帮助,而且会浑水淹没,所以我现在就把它留在这里。任何帮助将我的应用程序推送到Heroku将不胜感激。感谢。

解决方案

请确保您推送的回购包含适当的支持应用程序(Rails,Django等)不只是推一些随机回购来测试它。





如果是这样的话是不是这种情况,你推动你认为是一个有效的应用程序,联系Heroku的支持,他们会为你解决它。


I am in the process of setting up a git repository and attempting to link it to Heroku. When I run the command

git push heroku master

I receive

Counting objects: 7, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (7/7), 714 bytes, done.
Total 7 (delta 1), reused 0 (delta 0)

-----> Heroku receiving push

 !     Heroku push rejected due to an unrecognized error.
 !     We've been notified, see http://support.heroku.com if the problem persists.


To git@heroku.com:morning-stream-3712.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:morning-stream-3712.git'

I'm not quite sure what other information would be helpful and what will just muddy the waters, so I'll just leave it at this for now. Any help getting my application pushed to Heroku would be greatly appreciated. Thanks.

解决方案

Make sure you are pushing a repo that contains a proper supported app ( Rails, Django etc.) and you are not just pushing some random repo to test it out.

Newbie in Heroku: Error when push my app to Heroku

If that is not the case and you are pushing what you think is a valid app, contact Heroku support and they will fix it for you.

这篇关于git,Heroku:pre-receive hook谢绝了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆