Git: Could not resolve host github.com error while cloning remote repository in git

I got a similar error, and it’s caused by incorrect proxy setting. This command saved me:

git config --global --unset http.proxy

https version:

git config --global --unset https.proxy

Leave a Comment