Git: the http proxy config is not work since the password has special chars

Created on 18 Jul 2016  路  2Comments  路  Source: git-for-windows/git

Setup

git version 1.9.5.msysgit.1

Details

i've got a problem when i trying to config http proxy for git in Bash
with username and password which includes some special chars such as '@',
can you give me some advice?

example cmd: `git config http.proxy http://username:123@456@proxyserver:port` ,

the password is "123@456" in this example.

thanks for your efforts, and look forward to your reply.

question

Most helpful comment

Indeed, URL-encoding the special characters should work. In the above-mentioned example:

git config http.proxy http://username:123%40456@proxyserver:port

All 2 comments

Try encoding them as they encodes in http urls, e.g. %20 - ' ', %40 - '@'

Indeed, URL-encoding the special characters should work. In the above-mentioned example:

git config http.proxy http://username:123%40456@proxyserver:port
Was this page helpful?
0 / 5 - 0 ratings

Related issues

tldzyx picture tldzyx  路  3Comments

vocaviking picture vocaviking  路  5Comments

drewnoakes picture drewnoakes  路  5Comments

Jarmos-san picture Jarmos-san  路  3Comments

michaelblyons picture michaelblyons  路  5Comments