Get git through proxy

5

I'm setting up my work environment here in the service.

It is windows 7 and has a proxy with username and password.

I want to download a project from my repository in Github and need to go through the proxy.

I'm doing everything for the prompt and I got the following command after searching the net:

git config --global http.proxy http://username:senh@[email protected]:3128

Where senh@nov4 is an example of my password.

The problem is that my password has @ and can not be changed to a password without special characters.

I ran several tests with some escaped characters and with quotation marks but I could not resolve this issue with @ .

    
asked by anonymous 30.04.2014 / 16:24

1 answer

7

Change @ of your password by Percent-encoding of it: %40 , example:

git config --global http.proxy http://username:senh%40nov%[email protected]:3128
    
30.04.2014 / 16:32