7

连接到 Github 时远程错误

 2 years ago
source link: https://blog.kelu.org/tech/2022/03/22/github-clone-unauthenticated-git-protocol-on-port-9418-is-no-longer-support.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

连接到 Github 时远程错误

2022-03-22     tech git

git.jpg

发生了什么?

我在安装on my zsh时报错

fatal: remote error: 
  The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.

根据官方博客,github升级了他们的安全机制,不再支持端口 9418 上未经身份验证的 git 协议错误。

  • 一 使用https:替换git:

    git config --global url."https://".insteadOf git://
    
  • 二 修改 git://github.com/

    git://github.com/... 
    
    github:......
    

如果本文对你有帮助,欢迎投食

alipay.gif
qpay.gif
圣杯の寄るべに従い。この意、この理に従うならば応えよ!

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK