remote rejected master -> master (pre-receive hook declined)

后端 未结 21 1879
我在风中等你
我在风中等你 2020-11-30 01:31

I\'m working in rails 3.2 and I receive an error when I try to push to heroku:

 git push heroku master
Counting objects: 496, done.
Delta compression using u         


        
21条回答
  •  萌比男神i
    2020-11-30 02:12

    I was facing the same problem.

    [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to ""

    Cause of Error :
    I was in develop branch and trying to push to remote master branch

    Solution:
    Checkout to develop branch(another branch) and execute :

    git push heroku develop 
    

提交回复
热议问题