error: src refspec master does not match any + git push origin -u master

Did you try -> git push origin -u master


After git init, your git repository do not have any commits yet. Try adding a file, commit and then push.


Try this:


>> git add <file_name>
>> git commit -m "fitst commit"
>> git push -u origin master

Works.