How to clone repository with Git under Windows proxy? -
proxy requires autenfication. tried using global variables: http_proxy , https_proxy. not seems git able them.
if pass them parameters works:
git clone repository_url aut_params
also git able use them if specify them in git\mingw64\gitconfig in following way:
[credential] helper = manager [http] proxy = http://user:pass@proxy.com:8080 sslverify = false [https] proxy = https://user:pass@proxy.com:8080 sslverify = false
okay, git sees credentials. if try clone again, says
failed connect proxy.com port 8080: bad access
i figured ssl certificate matter(git giving other error before, saying certificates, not sure if i'll able reproduce again).
so if this:
git config --global http.sslverify false
it works! clones repository. if specify sslverify = false in gitconfig(as above), not works, resulting error(also written above). how to tell git sslverify false always?
i have big project uses git download large amount of repositories in cmake scripts. cant(and not know how) change cmake scripts firsly make call --global http.sslverify false. me days make workaround.
ps. suffered long corporate proxy
Comments
Post a Comment