git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal

简介: git 出现错误:kex_exchange_identification: read: Connection reset by peer fatal

image.png

今天偶然遇到一个这个问题,明明上午git还好好的,突然就没办法push 和pull了,网上说什么的都有。但是本地的 add . 和commit -m "" 都还行。

本来想着重新配ssh的,偶然间看到了一个很简单的办法,于是我死马当活马医,打算尝试一下,竟然成功了,方法如下

不要在vscode中的终端使用命令行,用电脑自带的终端 进入这个文件的目录然后重新git init 操作一下 然后就可以了。

希望对你也有用

相关文章
|
5天前
|
网络安全 数据安全/隐私保护
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
解决git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Pleas
|
6月前
|
网络安全 开发工具 git
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
git clone之报错git@gitee.com:Permission denied (publickey).fatal: Could not read from remote repository
187 0
|
6月前
|
开发工具 git
解决Git push提交时Permission denied(publickey).Could not read from remote...的问题
解决Git push提交时Permission denied(publickey).Could not read from remote...的问题
62 0
|
8月前
|
开发工具 git 开发者
解决fatal: not a git repository (or any of the parent directories): .git问题
解决fatal: not a git repository (or any of the parent directories): .git问题
1081 1
|
5月前
|
存储 开发工具 git
(详解踩坑)GIT版本回滚git stash、git reset、git reset --hard、git revert
(详解踩坑)GIT版本回滚git stash、git reset、git reset --hard、git revert
65 0
|
5月前
|
开发工具 git
解决:fatal: not a git repository (or any of the parent directories): .git的问题
解决:fatal: not a git repository (or any of the parent directories): .git的问题
|
6月前
|
开发工具 git Windows
git报错-fatal: HttpRequestException encountered.
git报错-fatal: HttpRequestException encountered.
28 0
|
6月前
|
开发工具 git
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
108 0
|
10月前
|
开发工具 git
git clone & git reset 补充
git clone & git reset 补充
49 0
|
12月前
|
Shell 开发工具 git
【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法
【Git初探】Git中fatal: Not a git repository (or any of the parent directories): .git错误的解决办法
9681 0

相关实验场景

更多