git error :Unable to look up xyz.com (port <none>) (Servname not supported for ai_socktype)

git

Solution

I don't think this is related to Git, but rather linked to the server on which Git is running.

See this article

what could this mean: “Servname not supported for ai_socktype“. After some other tries I have finally seen the problem… NTP ports were not defined in `/etc/services` and this was the root of the error. The system didn’t know how to make ntp connections without that. So I’ve added the following lines to `/etc/services`

ntp             123/tcp
ntp             123/udp

and after this `ntpdate` started working as expected…

Check with your administrator before attempting any modification of those files (unless this is your personal server)

Problem

I'm getting this error message from git.What's this mean ? How to fix?

Original source