git使用socks5代理提示:Unsupported proxy syntax in 127.0.0.1:1080

提示说是语法错误:

打开.gitconfig文件查看代理:

[http]
    proxy = 'socks5://127.0.0.1:1080'
[https]
    proxy = 'socks5://127.0.0.1:1080'

去掉前后的单引号,错误消失

[http]
    proxy = socks5://127.0.0.1:1080
[https]
    proxy = socks5://127.0.0.1:1080

你可能感兴趣的:(git)