5
I went to give a push and this error occurred:
error: src refspec master does not match any.
What is the cause of this? Could someone help me?
5
I went to give a push and this error occurred:
error: src refspec master does not match any.
What is the cause of this? Could someone help me?
1
Possible causes for this error:
push for her.checkout to the branch before doing the push.push. Remembering that in Git, it is not possible to do push of empty directories, which may lead to the same error as well.git push. To solve, you can do the checkout back to the branch or git push origin HEAD:nome-branchBrowser other questions tagged git github
You are not signed in. Login or sign up in order to post.
Try
git push -u origin master– Valdeir Psr
Maybe this solution can help you: https://stackoverflow.com/a/7572252/8997852
– Venicio Pedrosa
Explaining the
git push -u: https://answall.com/a/210655/64969– Jefferson Quesado
Another possible error is that you may not have locally
branchcalledmaster. What command did you execute?– Jefferson Quesado
Can you post the full Git message when you do a "git status" and when you tried to run the above command? If you have sensitive data rip.
– egomesbrandao