! [remote rejected] master -> master (pre-receive hook declined) [duplicate]

匿名 (未验证) 提交于 2019-12-03 03:04:01

问题:

This question already has an answer here:

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.

回答1:

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 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!