How to Solve Git error: src refspec refs/heads/master does not match any

Git heartache experience

After this mistake, I found several ways, but they didn’t solve my problem. Later, I came across a low-key God’s opinion:

I just tried:

I faced same problem and I used –allow-empty.

$ git commit -m "initial commit" --allow-empty
...
$ git push
...

 

Similar Posts: