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

后端 未结 21 1889
我在风中等你
我在风中等你 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条回答
  •  天命终不由人
    2020-11-30 02:21

    Check the following

    1. Make sure you add all the files and directories needed to be tracked are added using git status [You have done this]

      $ git status

    2. If not added then add them using **git add . ** [You have done this]

      $ git add .

    3. Bundle all gems and you will have Gemfile.lock

      $ bundle install
      $ git add Gemfile.lock
      $ git commit -am "Added Gemfile.lock"

    4. Push it to heroku

    $ git push heroku master

    Your push should work

提交回复
热议问题