Configure git to use IPv4 instead of IPv6 by default

前端 未结 5 594
天命终不由人
天命终不由人 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:21

    For those that are using Ubuntu/Debian, the best way to have the latest git version is following the steps below, taken from here.

    sudo add-apt-repository ppa:git-core/ppa  
    sudo apt-get update  
    sudo apt-get install git  
    

    Updating for a version 2.19+ plus the solution above, proposed by Anthony C Howe has solved my problem.

提交回复
热议问题