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

﹥>﹥吖頭↗ 提交于 2020-01-01 07:31:11

问题


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


来源:https://stackoverflow.com/questions/21516561/remote-rejected-master-master-pre-receive-hook-declined

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