To use git push, take the following steps:
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/focusor/focusor.github.io.git
git push -u origin master
The following error occurs:
error: src refspec master does not match any.
error: failed to push some refs to "xxxxxxx"
Then the solution is as follows:
git add .
git commit -m "write your meaaage"
The push was successful after that. What is the specific reason?
巴扎黑2017-05-02 09:32:04
This kind of error is usually caused by the fact that there is no file in the temporary storage area when pushing. Check whether the README.md of add exists