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
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 show-ref
refs/heads/YOURBRANCHNAME
git checkout -b "YOURBRANCHNAME"
git show-ref, will now show your branch reference.
Now you can do the operations on your branch.