Magento 2 installation problem – Couldn’t resolve host ‘’

couldnt resolve git hub m2
We were installing Magento 2 on the local environment using composer create-project as shown below -:

composer create-project --repository-url= magento/project-community-edition .

After few errors related to adding extensions like php_soap.dll, php_xsl.dll and php_intl.dll in php.ini file. We ended up getting the following error with composer update where it was showing Couldn’t resolve host ‘’

[RuntimeException] Failed to clone via https, ssh protocols, aborting. - Cloning into '..xampphtdocsmagento2vendorcontainer-interopcontainer-interop'... fatal: unable to access '': Couldn't resolve host '' - Cloning into '..xampphtdocsmagento2vendorcontainer-interopcontainer-interop'... ssh: Could not resolve hostname 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.

We managed to resolve the issue by running the following two commands -:

git config --global --unset http.proxy git config --global --unset https.proxy

Hope this article helped you in some way. Please leave us your comment and let us know what do you think? Thanks.