目录

git 设置代理

# git 设置代理

https://gist.github.com/laispace/666dd7b27e9116faece6

# git 设置全局代理

git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.https://github.com.proxy socks5://127.0.0.1:9999
git config --global http.https://github.com.proxy socks5://192.168.31.2:9999
1
2
3
4

# git 删除全局代理

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

# git 设置只对 github 的代理

git config --global http.https://github.com.proxy socks5://127.0.0.1:9999
1

# git 删除只对 github 的代理

git config --global --unset http.https://github.com.proxy
1

在用户目录下 ~\.gitconfig 下查看配置


# pip 设置豆瓣源

顺便贴一下

pip config set global.index-url https://pypi.douban.com/simple
1
上次更新: 2024-01-09 1:01:00
最近更新
01
自建 RSS 订阅
01-05
02
搭建私人 docker hub
01-02
03
关于 SSH 攻击
10-12
更多文章>