git克隆出现443
# 问题描述
git push 、git clone 443
# 修改host
查询可以用的IP
在 http://ping.chinaz.com/github.com (opens new window)查询对应的耗时情况。
修改 hosts 文件
hosts 文件路径:C:\Windows\System32\drivers\etc\HOSTS
我们把
13.250.177.223 github.com
添加到 hosts 文件。
立刻刷新 dns
ipconfig /flushdns
ping 测试
λ ping github.com
正在 Ping github.com [13.250.177.223] 具有 32 字节的数据:
来自 13.250.177.223 的回复: 字节=32 时间=67ms TTL=42
来自 13.250.177.223 的回复: 字节=32 时间=69ms TTL=42
来自 13.250.177.223 的回复: 字节=32 时间=67ms TTL=42
来自 13.250.177.223 的回复: 字节=32 时间=67ms TTL=43
13.250.177.223 的 Ping 统计信息:
数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 67ms,最长 = 69ms,平均 = 67ms
# 如果只是拉取代码,可以使用镜像https://gitclone.com/
方法一(替换URL)
git clone https://gitclone.com/github.com/tendermint/tendermint.git
方法二(设置git参数)
git config --global url."https://gitclone.com/".insteadOf https://
git clone https://github.com/tendermint/tendermint.git
方法三(使用cgit客户端)
cgit clone https://github.com/tendermint/tendermint.git