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

后端 未结 16 2006
梦如初夏
梦如初夏 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:37

    I got this error when trying to push to Heroku when I wasn't on my local master branch.

    I resolved it with

    git push heroku my_branch_name:master

    and replacing my_branch_name with the name of the git branch I was on. I think this tells Heroku to receive this local branch on Heroku's master branch.

提交回复
热议问题