Ruby-on-rails ![远程拒绝] master -> master(预接收钩拒绝)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/21516561/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-02 23:19:21 来源:igfitidea点击:
! [remote rejected] master -> master (pre-receive hook declined)
提问by user2918086
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To [email protected]:tranquil-crag-9767.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]: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.
任何想法为什么会发生这种情况?我已经检查过一切设置是否正确,并且与 git 的连接良好。
回答by Rahul Singh
First try to pull your master from heroku.
首先尝试从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

