I want make push and get error: src refspec master does not match any

后端 未结 16 2021
梦如初夏
梦如初夏 2020-12-02 12:16

I\'m hosting on Heroku. I want to make a push:

git push master Heroku

I gets the message:

error: src refspec master does no         


        
16条回答
  •  难免孤独
    2020-12-02 12:43

    First push your changes to the remote branch before pushing to heroku

    git push origin master
    git push heroku master 
    

    If you want to push a branch which is not the master branch to heroku

    git push origin development_branch
    git push heroku development_branch:master
    

提交回复
热议问题