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
By just adding an empty commit will fix issue by using
$ git commit -m "empty commit" --allow-empty $ git push
// above make empty commit without edit then push