git设置代理
程序员文章站
2022-07-14 11:24:54
...
文章目录
设置代理
git config --global https.proxy http://x.x.x.x:port/
git config --global http.proxy http://x.x.x.x:port/
验证(http方式)
$ git clone https://github.com/rapidloop/pgmetrics.git
Cloning into 'pgmetrics'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 843 (delta 4), reused 11 (delta 4), pack-reused 829
Receiving objects: 100% (843/843), 1.26 MiB | 575 KiB/s, done.
Resolving deltas: 100% (335/335), done.
取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy