I am having trouble pushing code from my machine to github. I have setup the repos:
git remote add origin git@github.com:hugeeee/demo_app.git
I get this error when type the command git push -u origin master:
ssh: Could not resolve hostname github: Name or service not known
fatal: The remote end hung up unexpectedly
Can anybody please direct me towards the solution?
Run this:
Make sure you actually say “github.com”. You probably left out the “.com” when you created the remote.