在git代理密码中退出@字符 [英] Escape @ character in git proxy password
本文介绍了在git代理密码中退出@字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的git代理配置为'http.proxy = http:// userId: pwd @ 123 @ipaddress:port'但是在克隆远程项目时, p>
I have git proxy config as 'http.proxy=http://userId:pwd@123@ipaddress:port' but while cloning a remote project, I'm getting error as
Cloning into git...
error: Couldn't resolve proxy '123@ipaddress' while accessing http://git.kernel.org/pub/scm/git/git.git/info/refs
fatal: HTTP request failed
如何在密码中转义'@'字符?
How to escape the '@' character in password?
请注意:我无法更改密码。
Pls note: I cannot change the password.
推荐答案
I如果您在代理网址中传递密码,请尝试使用@符号的URL编码值:
I'd try using the URL Encoded value of the @ symbol if you're passing the password in the proxy url:
http.proxy=http://userId:pwd%40123@ipaddress:port
这篇关于在git代理密码中退出@字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文