错误:无法将某些引用推送到';https://git.heroku.com/nameless-cliffs-57613.git'
我在Heroku中创建了一个新应用程序。 然后我在命令行中运行了这个错误:无法将某些引用推送到';https://git.heroku.com/nameless-cliffs-57613.git',git,heroku,Git,Heroku,我在Heroku中创建了一个新应用程序。 然后我在命令行中运行了这个 git init heroku create git add . git push -f heroku master 最后我得到了这个错误: ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/nameless-cl
git init
heroku create
git add .
git push -f heroku master
最后我得到了这个错误:
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/nameless-cliffs-57613.git'
你能告诉我怎么做吗。谢谢。根据错误文本,pre-receive钩子推送失败,因为您试图推送未编译的代码(即,可能有语法错误)。只需修复代码并再次推送。我看不到任何错误,因为它在我的本地主机上运行良好并成功构建。这种情况经常发生。请显示错误的全文。git remote show origin怎么说?请把钩子挂起来。然后人们可能会提供帮助…在“push-rejected”消息之前可能有一些有用的东西。仔细看一看。@Christoph,我认为这在Heroku身上没有多大意义。应用程序的构建不正确。OP需要更仔细地阅读输出。