I have a problem similar to the question in this link but when I try the solutions on my side it doesn't work.
I created a new project named "example1". Then I create a repository on GitHub named "example1".
After committing all changes, I ran
git push origin master
and came across this message:
$ git push origin master
ssh: Could not resolve hostname github.com:Sidney-Dev: Name or service not
known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Then I added this command:
git remote add origin ssh://git@github.com:Example-Dev/example1.git
And then checked:
$ git remote -v
origin ssh://git@github.com:Sidney-Dev/laravelblog.git (fetch)
origin ssh://git@github.com:Sidney-Dev/laravelblog.git (push)
But when I try to do git push again, I still come across the same errors as mentioned above.
How can I push my code to the GitHub repository?