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

后端 未结 16 2013
梦如初夏
梦如初夏 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 12:45

    In my case, this happened because I had nothing to push. I had forgotten to do a "git add" first. As soon as I did a "git add" then "git commit" for actual content, the push worked fine.

提交回复
热议问题