如何从谷歌源克隆时配置git代理

时间:2018-06-06 22:24:50

标签: git google-source-repositories

我的目标:

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

我的错误报告:

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

我的git配置:

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

使用谷歌git工作,我在official doc here之后编辑.gitcookies。

错误的原因是什么?

1 个答案:

答案 0 :(得分:0)

这些说明不包含http代理。

除非您确实需要该代理,否则只有http.cookiefile就足够了,因为说明是:

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"