我正在尝试从 gitlab 获取数据,但遇到错误 [英] I am trying to fetch data from gitlab i am facing error
本文介绍了我正在尝试从 gitlab 获取数据,但遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试从 git lab 获取我的网站内容,但不幸的是我遇到了错误,请检查以下内容以及如何解决此问题,谢谢.
I am trying to fetch my website content from git lab but unfortunately i am facing error please check below and how can i resolve this issue thanks.
git fetch
kex_exchange_identification: read: Connection reset by peer
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
推荐答案
我将 git repo 的远程 URL 从 SSH 切换到 HTTPS 后解决了这个问题.我的猜测是,这是由于 GIT 服务器施加的一些安全条件造成的.
I fixed this issue after I switched remote URL of git repo from SSH to HTTPS. My guess is that this is occurring because of some security conditions imposed by GIT server.
https://docs.github.com/en/free-pro-team@latest/github/using-git/changeing-a-remotes-url
这篇关于我正在尝试从 gitlab 获取数据,但遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文