Search code examples
githubwindows-10hostnamegithub-enterprise

Getting error could not resolve hostname for github enterprise


When I trying to clone github repositories from my company's self hosted github enterprise

I am getting error

Could not resolve hostname github....... : Name or service not known

But when I clone the same repo using the IP address I can do the same and I am even able to ping the github..... from command line.

I am using :

GIT version : git version 2.14.1.windows.1
Windows 10 enterprise version version: 1607 OS build: 14393

I have checked others with similar machine are not facing this issue

Can someone please help me with this issue.


Solution

  • I found the issue, so while installing Git the installer asks if I want to use the certificates installed on my Local Machine to which earlier said no.

    But after re-installing the Git, I selected this option and since that Github's certificate was installed on my machine by my company it was working fine.