! [remote rejected] master - >主人(预接收钩拒绝) [英] ! [remote rejected] master -> master (pre-receive hook declined)
本文介绍了! [remote rejected] master - >主人(预接收钩拒绝)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任务:TOP =>资产:预编译
(通过使用--trace运行任务查看完整跟踪)
!
!预编译资产失败。
!
!推送被拒绝,未能编译Ruby应用程序
到git@heroku.com:tranquil-crag-9767.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:未能将某些参考文献推送到'git@heroku.com:tranquil-crag-9767.git'
任何想法为什么会发生这种情况?我已经检查过所有设置都已正确设置,并且连接到git是很好的。
heroku。 $ git pull heroku master
,然后再次按下它。如果你仍然得到相同的错误,那么用力推你的代码
$ git push heroku master -f
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git@heroku.com:tranquil-crag-9767.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:tranquil-crag-9767.git'
Any ideas why this is happening? I have checked that everything is properly set up, and the connection to git is good.
解决方案
First try to pull your master from heroku.
$ git pull heroku master
and then push it again. If you are still getting the same error then push your code with force
$ git push heroku master -f
这篇关于! [remote rejected] master - >主人(预接收钩拒绝)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文