gitee.com[0: xxx.xx.xxx.xx]: errno=Unknown error

git在提交或拉取代码的时候,遇到以下报错信息:

Unable to connect to gitee.com0: xxx.xx.xxx.xx: errno=Unknown error

解决问题步骤:

1、找到自己的电脑上的git用户配置文件

文件位置位于:C:\Users\用户名\.gitconfig

比如我的用户名是:Administrator,那么我的文件就是:C:\Users\Administrator\.gitconfig

2、编辑修改.gitconfig 文件

将文件内容替换成下方的文件内容。

Delphi 复制代码
[user]
	name =  gitee账号
	email = gitee密码
[url "https://"]
	insteadOf = git://
[http]
	sslVerify = false
[credential "https://gitee.com"]
	provider = generic
[https]
	sslVerify = false

编辑完成之后,进行文件报错,这个问题,就能够有效解决。

相关推荐
深海鱼在掘金11 小时前
Git 完全指南 —— 第3章:理解工作区、暂存区、版本库三个核心
git
江华森13 小时前
Git 基础筑基:从原理到团队协作的全栈实战
git
JakeJiang17 小时前
Git 必备命令指南:从日常高频到项目开发实战
git
叫我少年2 天前
Windows 中安装 git
git
深海鱼在掘金7 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git
noravinsc8 天前
关于Git Flow
git
蜜獾云8 天前
在Git中配置用户名和密码
git
scx_link8 天前
通过git bash在本地创建分支,并推送到远程仓库中
开发语言·git·bash
南大白8 天前
IntelliJ IDEA 运行时的 JVM 本地内存溢出崩溃
git
码农小旋风8 天前
Claude Code 基础用法大全:对话、分析、修改、测试、Git 和工作流
人工智能·git·chatgpt·claude