error: src refspec master does not match any

后端 未结 21 1188
别跟我提以往
别跟我提以往 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:03

    Run the command git show-ref, the result refs/heads/YOURBRANCHNAME If your branch is not there, then you need to switch the branch by

    git checkout -b "YOURBRANCHNAME"
    

    git show-ref, will now show your branch reference.

    Now you can do the operations on your branch.

提交回复
热议问题