I am new to github and trying to create my first repository. After executing the below command:
$ git push -u origin master
I am getting following error:
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/rs/python-gtts.git
Few things I did,
Created a folder in my local: /Users/TrainingLearning/github/Python
After that executed following command:
echo "# python-gtts" >> README.md
git init
git add README.md
Then added my code (Python file - TextToSpeech.py
) to the same folder where I earlier created README.md file: /Users/TrainingLearning/github/Python
And tried doing:
$ git add .
$ git commit -m "first commit"
$ git remote add origin https://github.com/rs/python-gtts.git
But when I execute following command:
$ git push -u origin master
I started getting following error:
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/rs/python-gtts.git'