how to conf git proxy when clone from google source

446 Views Asked by At

My target:

git clone https://android.googlesource.com/brillo/manifest

My error report:

Cloning into 'manifest'... fatal: unable to access
'https://android.googlesource.com/brillo/manifest/': Proxy CONNECT aborted

My git config:

http.proxy=47.90.51.178:31702
http.https://android.googlesource.com.sslverify=false
http.https://android.googlesource.com.proxy=47.90.51.178:31702

for work with google git , I have edit .gitcookies followed the official doc here.

What's the cause of the error?

1

There are 1 best solutions below

9
On

Those instructions do not include an http proxy.

Unless you actually need that proxy, only the http.cookiefile should be enough, since the instructions are:

git config --global http.cookiefile "%USERPROFILE%\.gitcookies"
powershell -noprofile -nologo -command Write-Output ".googlesource.com`tTRUE`t/`tTRUE`txxyyzz`to`tgit-you.gmail.com=1/XX-YY-ZZ" >>"%USERPROFILE%\.gitcookies"