当前位置:首页 > Web开发 > 正文

所以在git bash中可能出现 $ git clone ^?https: // github.com/shi-bash

2024-03-31 Web开发

  今天在Windows上学习git clone将长途版本库克隆到本地时的操纵不当引起fatal: protocol ‘??https‘ is not supported,是我们在这方面常犯的一个错误。

二、解决步伐

stackoverflow上找到了解决方案和原因,此中是这么写到的:

You tried to paste it using CTRL +V before and it didn’t work so you went ahead and pasted it with classic Right Click - Paste**. Sadly whenever you enter CTRL +V on terminal it adds a hidden ^? (at least on my machine it encoded like that). the character that you only appears after you backspace (go ahead an try it on git bash). So your link becomes ^?https://... which is invalid.

在我们使用ctrl + c/v 进行复制粘贴操纵,在git bash中没有效果,下意识右键粘贴,但是不幸的是,使用 CTRL +V会在Git Bash 中添加一个隐藏的标记 ^?。所以在git bash中可能呈现

$ git clone ^?https://github.com/shi-bash-cmd/myweather.git

链接前面多了标记,,协议酿成了^https,必定不能克隆告成,提示协议不撑持。跟linux系统中的复制粘贴差别,在命令行中尽量小心使用ctrl + c/v

三、参考链接

https://stackoverflow.com/questions/53988638/git-fatal-protocol-https-is-not-supported

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/30883.html