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

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

    I have expericed the problem you have. I solved this problem like this

    1. make file whatever
    2. commit
    3. push

      $ touch readme
      
      $ git add .
      
      $ git commit -m "init"
      
      $ git push heroku master
      

    I don't know why.

提交回复
热议问题