【Azure App Service】Local Git App Service的仓库代码遇见卡住不Clone代码的问题

发布时间 2023-09-26 20:19:26作者: 路边两盏灯

问题描述

启用App Service Local Git 部署,在Clone 代码库到本地时候,卡在Clone ‘xxxxxx’ ... ... 一动不动的问题?

 

问题解答

因为Git Clone没有任何日志输出,所以在其他IDE上也尝试Git App Service的代码库。在intellj的git操作,报错“unable to access, SSL certificate problem: unable to get local issuer certificate”。 

根据这个错误,怀疑问题的根源是:git无法验证自签证书导致。

解决方法

1)尝试在本地的git操作中跳过验证,如使用:

$ git -c http.sslVerify=false clone [URL]

2)完成操作后重新开启验证:

$ git config --global http.sslVerify true。

3)也可以尝试重新配置git:

$ git config --global http.sslBackend schannel

 

参考资料

Cant clone from GitHub : SSL certificate problem: unable to get local issuer certificate  : https://github.com/desktop/desktop/issues/9293