致命协议' git;我无法在Mac Big Sur上使用Git HTTP请求。 SSH克隆正常工作,但HTTP返回此错误

发布于 2025-01-21 00:32:08 字数 806 浏览 3 评论 0原文

每当我想用我的 Mac 克隆一个存储库时,http url 不起作用,但 SSH 可以。这导致在过去两周内无法编译所需的应用程序。

chris@Chriss-MacBook-Air ~ % mkdir clones 
chris@Chriss-MacBook-Air ~ % cd clones
chris@Chriss-MacBook-Air clones % git clone https://github.com/ThingEngineer/PHP-MySQLi-Database-Class.git --progress --verbose
Cloning into 'PHP-MySQLi-Database-Class'...
fatal: protocol '”git' is not supported
chris@Chriss-MacBook-Air clones % which git
git: aliased to /usr/local/opt/[email protected]/bin/git
chris@Chriss-MacBook-Air clones % git --version
git version 2.19.0
chris@Chriss-MacBook-Air clones % 

当我在 HTTPS 上使用克隆命令时,出现此错误。这有点奇怪,因为我没有看到任何来源或类似的错误。

我尝试过多个版本的 git,甚至是最新版本 2.35.1

谢谢:)

Whenever I want to clone a repo with my mac, http urls dont work but SSHs do. This has prevented to compile a required application in the last two weeks.

chris@Chriss-MacBook-Air ~ % mkdir clones 
chris@Chriss-MacBook-Air ~ % cd clones
chris@Chriss-MacBook-Air clones % git clone https://github.com/ThingEngineer/PHP-MySQLi-Database-Class.git --progress --verbose
Cloning into 'PHP-MySQLi-Database-Class'...
fatal: protocol '”git' is not supported
chris@Chriss-MacBook-Air clones % which git
git: aliased to /usr/local/opt/[email protected]/bin/git
chris@Chriss-MacBook-Air clones % git --version
git version 2.19.0
chris@Chriss-MacBook-Air clones % 

When I use the clone command on HTTPS, I get this error. It is kind of peculiar because I havent seen any sources or similar errors.

I have tried multiple versions of git, even the latest version 2.35.1

Thanks :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文