使用GIT期间遇到的问题(持续更新)

QUESTION 1:    fatal: unable to access 'https://github.com/cloudera/Impala.git/': Failed to connect to github.com port 443: Timed out

DESCRIPTION: 在我clone/pull一个project时,出现这个问题!查询后发现因为自己配置了HTTP Proxy,而GIT的配置并没有更新相应的代理,导致不能正常访问。

SOLUTION: $ git config --global http.proxy http://{system_login_usr}:{system_login_pwd}@{proxy_address}:{proxy_port}

RESULT:      Cloning into 'Impala'...
fatal: unable to access 'https://github.com/cloudera/Impala.git/': error setting certificate verify locations:
CAfile: C:/Feng Guangyuan/Git/mingw64/ssl/certs/ca-bundle.crt
  CApath: none


QUESTION 2: 见问题1的结果

DESCRIPTION:ca-bundle.crt的定位错误,可能的原因为(1)windows下路径错误导致(2)windows下该文件的空白符/结束符导致

SOLUTION:(1)粗鲁式:$ git config --global http.sslverify false关闭认证

(2)

 Then add the config into ~/.gitconfig (if not existing, create it)  **vim ~/.gitconfig**  [http]   sslVerify = true   sslCAinfo = /etc/ca-certificates/extracted/ca-bundle.trust.cr

RESULT:

Cloning into 'Impala'...
remote: Counting objects: 265117, done.
remote: Compressing objects: 100% (30/30), done.
Receiving objects:  26% (69237/265117), 3.59 GiB | 286.00 KiB/s



你可能感兴趣的:(git,timeout,clone,pull)