git报错——kex_exchange_identification: read: Software caused connection abort banner exchange......
·
1、问题:
在IDE推送的时候,出现了如下的问题,特此记录一下:
kex_exchange_identification: read: Software caused connection abort
banner exchange: Connection to 175.24.250.178 port 22: Software caused connection abort
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

出现这个问题的原因呢,可能是因为当时通过 http 连接的路径或者端口号改变了,导致远程仓库与本地仓库不匹配。
2、解决
在项目目录下输入如下命令,重新建立连接,这里会在次输入相关远程仓库的账号密码:
git remote set-url origin 路径
例如下面:
git remote set-url origin https://e.coding.net/lcc/yjwzDispatch/yjwzdispatch_front.git
此时在次推送就不会有问题了!
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐



所有评论(0)