Reputation: 355
I'm trying to clone a repo using proxy.
I've already configured git with:
git config --global https.proxy http:\\proxyuser:[email protected]:8080
But when I type:
git clone https://bitbucket.org/petsc/petsc petsc
It shows me the next error:
Cloning into 'pflotran-dev'... fatal: unable to access 'https://bitbucket.org/pflotran/pflotran-dev/': Received HTTP code 302 from proxy after CONNECT
I think I did it all right. I have no idea what is happening. Thanks for helping.
Upvotes: 4
Views: 11563
Reputation: 1325155
It could be a syntax error:
http:\\proxyuser...
http://proxyuser...
So try:
git config --global http.proxy http://proxyuser:[email protected]:8080
git config --global https.proxy http://proxyuser:[email protected]:8080
Upvotes: 4