Git Push Error - Could not resolve host name
Simply type:
git remote -v
and double-check the url associated with origin
for your upstream repo.
Once you have the right url, update your remote origin with another git remote
command:
git remote set-url origin /the/right/url
In your case, the url is wrong:
https:/github.com/nkshastri/datasciencecoursera.git
# instead of:
https://github.com/nkshastri/datasciencecoursera.git
^^^^
Simply type:
git remote set-url origin https://[email protected]/nkshastri/datasciencecoursera
Then try again:
git push -u origin master
(with master
, not maaster
)
Sometimes this can be caused by a network issue. Try restarting your wifi or, if the repository is behind a VPN, make sure you are on the VPN.