Well I did following steps
-
Google the error
-
Got to SO Links(here, here) which suggested the same thing, that I have to update the Git Config for proxy setting
-
Damn, can not see proxy information from control panel. IT guys must have hidden it. I can not even change the setting to not to use proxy.
-
Found this wonderful tutorial of finding which proxy your are connected to
-
Updated the
http.proxy
key in git config by following commandgit config --global http.proxy http[s]://userName:password@proxyaddress:port
-
Error – “could not resolve proxy
some@proxyaddress:port
“. It turned out my password had a@
symbol in it. -
Encode
@
in your password to%40
, because git splits the proxy setting by @ -
If your userName is a email address, which has
@
, also encode it to%40
. (see this answer)git config --global http.proxy http[s]://userName(encoded):password(encoded)@proxyaddress:port
Baam! It worked!
Note – I just wanted to answer this question for souls like me, who would come looking for answer on SO 😀