Q - I intalled git to get the latest version of Angular. When i tried called
git clone https://github.com/angular/angular-phonecat.git
I got failed to connect to github 443 error
I even tried
git clone git://github.com/angular/angular-phonecat.git
That gave me failed to connect no error message.
I am behind my company firewall. I can not see my proxy details when I go to control panel->Internet Options -> connections -> lan setting
.IT guys are not sharing proxy information with me. I do not know what to do ??
I finally managed to do it. I will update the procedure that I had taken in order to Just wanted to compile all the steps that I did to get it to work
If your country or working environment blocks sites like Github.
Then you can build a proxy, e.g. use xxnet, which is free & based on Google's
GAE
, and available forWindows
/Linux
/Mac
.Then set proxy address for git, e.g:
Mine was fixed by just using this command :-
where XXX.XXX.XXX.XXX is the proxy server address and ZZ is the port number of the proxy server.
There was no need to specify any username or password in my case.
(Hope this answer help someone like me.)
The same problem happened to me in Windows using git for windows.
I set proxy setting as usual:
In my situation, the username is email, so it has a @ sign. After encode the @ sign with %40 in username, the problem is resolved.
So, encode the special characters not only in password, but also in username. (Refer to the comments of this answer)
Was getting the same error in SourceTree,go to Tools>Options>Network and check Add proxy server configuration to Git/Mercurial if you had already set the proxy settings
In Visual Studio go to
Tools/NuGet Package Manager / Package Manager Console
Type git config --global http.proxy http://xxx.xxxx.xxxx:Port
On Windows 7 setting the proxy to global config will resolve this issue
but the problem here is your password will not be encrypted.. Hopefully that should not be much problem as most of time you will be sole owner of your PC.