- 作者: 丶布布
 
一、SSL certificate problem: unable to get local issuer certificate
问题:当我从GitHub上克隆git clone一个项目到本地的时候,系统出现了如下提示:
SSL certificate problem: unable to get local issuer certificate![在这里插入图片描述 [Git] 使用过程中的常见错误及解决方式_SSL](https://file.cfanz.cn/uploads/png/2023/12/22/21/360adEaNNN.png)
 原因:这里其实是电脑没有安装对应的ca证书,所以无法通过https连接到git服务器。
解决:通过设置git的ssl验证跳过了这个错误:
  ①打开git命令操作框 ②配置http.sslVerify为false
  Git命令:git config --global http.sslVerify false
![在这里插入图片描述 [Git] 使用过程中的常见错误及解决方式_SSL_02](https://file.cfanz.cn/uploads/png/2023/12/22/21/8bKe297b7b.png)
二、fatal: not a git repository (or any of the parent directories): .git
问题:在使用git做本地的项目上传到github的时候,在进行远程建立连接的时候,出现了如下错误:
fatal: not a git repository (or any of the parent directories): .git![在这里插入图片描述 [Git] 使用过程中的常见错误及解决方式_git_03](https://file.cfanz.cn/uploads/png/2023/12/22/21/3N75d37392.png)
 措施:这个错误说明了没有.git这样的一个目录,所以只需要git init一下,就可以解决了,然后再重新建立远程连接。
![在这里插入图片描述 [Git] 使用过程中的常见错误及解决方式_git报错_04](https://file.cfanz.cn/uploads/png/2023/12/22/21/3fTIfb5954.png)
未完待续…
戳戳小手帮忙点个免费的赞和关注吧,嘿嘿。  | 
                









