【问题标题】:how to escape special characters in .gitconfig proxy authentication如何在 .gitconfig 代理身份验证中转义特殊字符
【发布时间】:2012-04-16 09:55:39
【问题描述】:

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

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

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

【问题讨论】:

    标签: linux git bash proxy


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-04-27
      • 2020-05-23
      • 1970-01-01
      • 1970-01-01
      • 2013-05-16
      • 2012-04-14
      • 2020-01-17
      • 2015-01-02
      相关资源
      最近更新 更多