If you work on a Windows computer and create a new GitHub repository, you can copy the code from the GitHub page to set the remote address and push the existing code to the GitHub server. You may get the following error message:
$ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Make sure you have selected the HTTPS button to see the correct lines for Windows.
To change to address of the remote server execute the following
git remote set-url origin https://github.com/.....