git更新代码时显示"auto-detection of host provider took too long"移除方法

问题描述

在windows操作系统,未连接互连网电脑,更新内网代码库时显示“auto-detection of host provider took too long (>2000ms)”,如下图所示。

解决方法

使用记事本打开%userprofile%目录下的.gitconfig 文件,在其中添加如下配置并保存即可。

[credential "http://192.168.1.1:8080"]

provider = generic

若其中http://192.168.1.1:8080是出现检测供应端超时的网址,根据需要更新对应值更新对应值

推荐文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: