Git 配置网络代理

创建 ~/.gitconfig 文件, 编写以下内容:

代理指定的地址

[http "https://github.com"]
	proxy = socks5://127.0.0.1:7890 (推荐)

代理指定 http https 协议

[http]
	proxy = http://127.0.0.1:7890
[https]
	proxy = https://127.0.0.1:7890

你可能感兴趣的:(开发笔记,git,github)