Configure git to use IPv4 instead of IPv6 by default

前端 未结 5 595
天命终不由人
天命终不由人 2020-12-13 02:49

Checking the environment variables and also HTTP configuration options does not reveal something. Is there a way to do this?

5条回答
  •  时光取名叫无心
    2020-12-13 03:24

    There are situations where upgrade git or where IPV6 is running but not working as expected, for example, under Windows Linux subsystem, my solutions is simple: just add the git/httpb/ssh IPV4 location on /etc/hosts.

    Use host to get the IPV4 address and append it to /etc/hosts with name for your own use, for example, 1.1.1.1 git4.server.com

提交回复
热议问题