gpt4 book ai didi

linux - 如何在 .gitconfig 代理身份验证中转义特殊字符

转载 作者:IT王子 更新时间:2023-10-29 00:06:26 25 4
gpt4 key购买 nike

我正在尝试在代理后面使用 git,并且我已经在 .gitconfig 文件中设置了代理详细信息,如下所示。

 [http]
proxy = http://<username>:<password>@<proxy_ip>:<proxy_port>

问题是用户名和密码字段包含需要被转义了,应该怎么转义呢?

最佳答案

@ 替换为 %40。 (如图所示,例如,在 this bug report 中)

export http_proxy=http://username%40domain.com:password@host:port

关于linux - 如何在 .gitconfig 代理身份验证中转义特殊字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9981516/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com