I am following the instructions given here to create a Git repository. All went well until the last line:
$ git push -u origin master
Most likely the remote repository doesn't exist or you have added the wrong one.
You have to first remove the origin and re-add it:
git remote remove origin git remote add origin https://github.com/username/repository