Git 拉/ Git 推/ Git 克隆不工作(SSL 错误 140770FC)
Git pull/ Git push/ Git clone not working (SSL error 140770FC)
我在 Git 和 Github 执行提交操作时遇到问题,例如 git push
, git pull
甚至 git clone
Visual Studio Code and Git Bash.
我收到这个错误
fatal: unable to access 'https://mygithub.com/myusername/testgit.git/': error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
在几天前尝试 git push
之后效果还不错。
我已经尝试更新我的 Git(当前 2.19.1.windows.1 Windows 10) 根据这里的另一个问题再次下载 Git(所以一切都是最新的)但仍然没有解决我的问题。
我最初使用此命令 git clone https://MyToken@mygithub.com/myusername/testgit.git
使用令牌克隆了我的项目,该命令几周前就起作用了。我尝试通过 SSH 方法访问该项目,但出现此错误
ssh_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
提前致谢。
对于第一个错误,我忘记将 git 远程 HTTPS 更改为 SSH。按照步骤 here.
对于第二个错误,我有一个公司互联网,所以这阻止了我的提交。我使用自己的 phone 互联网并将其连接到我的计算机,现在一切正常!
我在 Git 和 Github 执行提交操作时遇到问题,例如 git push
, git pull
甚至 git clone
Visual Studio Code and Git Bash.
我收到这个错误
fatal: unable to access 'https://mygithub.com/myusername/testgit.git/': error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
在几天前尝试 git push
之后效果还不错。
我已经尝试更新我的 Git(当前 2.19.1.windows.1 Windows 10) 根据这里的另一个问题再次下载 Git(所以一切都是最新的)但仍然没有解决我的问题。
我最初使用此命令 git clone https://MyToken@mygithub.com/myusername/testgit.git
使用令牌克隆了我的项目,该命令几周前就起作用了。我尝试通过 SSH 方法访问该项目,但出现此错误
ssh_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
提前致谢。
对于第一个错误,我忘记将 git 远程 HTTPS 更改为 SSH。按照步骤 here.
对于第二个错误,我有一个公司互联网,所以这阻止了我的提交。我使用自己的 phone 互联网并将其连接到我的计算机,现在一切正常!