error: src refspec master does not match any

后端 未结 21 1192
别跟我提以往
别跟我提以往 2020-12-22 17:38

I have tried to follow the solutions suggested in this post but it didnt work and I am still getting: src refspec master does not match any.

Here is what I did: Fo

21条回答
  •  南方客
    南方客 (楼主)
    2020-12-22 18:16

    This is happend to me once I forgot to add files. So I got the same error. All you need to do is add your files.

    1. Add your files => git add . or the name of the files you want to add. you supposed to init first your repo with git init.
    2. Commit your changes => git commit -m 'Initial Commit'.
    3. Now push your changes => git push -u origin master

提交回复
热议问题