git clone配置代理加速

有时候git clone 网速较慢,可以通过配置代理来提供克隆速度

配置如下:

1
2
git config --global http.proxy socks5://127.0.0.1:1080
git config --global https.proxy socks5://127.0.0.1:1080

取消配置如下:

1
2
git config --global --unset http.proxy
git config --global --unset https.proxy

以上是全局配置

posted @   yinhuachen  阅读(580)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
点击右上角即可分享
微信分享提示