在代理后面配置 GIT 时出现问题

Issue when configure GIT behind a proxy

我正在执行 git config --global http.proxy http://user:password@proxy.example:3128 以在 GIT 中配置代理。问题是当我的用户包含 @.

用户: myuser@test

密码:1234

如果我运行:git config --global http.proxy http://myuser@test:1234@proxy.example:3128

我收到错误:Couldn't resolve proxy 'test'

我该如何解决?谢谢。

使用@的编码值:%40123

像这样:

git config --global http.proxy http://myuser%40123test:1234@proxy.example:3128

来源:Escape @ character in git proxy password