I am following the instructions given here to create a Git repository. All went well until the last line:
$ git push -u origin master
Here is how I resolved this issue
Go to the remote repository on Github and copy the project's repository url.
On git bash type: git remote add origin the remote repository url goes here