致命协议' git;我无法在Mac Big Sur上使用Git HTTP请求。 SSH克隆正常工作,但HTTP返回此错误
每当我想用我的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论