I am following the instructions given here to create a Git repository. All went well until the last line:
$ git push -u origin master
I'll still share my short answer humbly, knowing that I'm super late to answer this question.
Here's, a simple and clean explanation that solved my issue
Also, since I was using the SSH key I used the following command:
for instance it would look like:
If you are using the HTTPS URL, refer to the answer provided by @sunny-jim above.
Do correct me if I'm wrong. Thanks.