zoukankan      html  css  js  c++  java
  • Git--Git clone时遇到fatal: protocol '––https' is not supported

    一、问题由来

      今天在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
  • 相关阅读:
    贝塞尔曲线
    那些有内容的文章——记录网址
    Mac 下 SVN 的使用
    让时间不再随系统设置而改变
    iOS 关闭图片渲染
    iOS的AssetsLibrary框架访问所有相片
    iOS开发系列--音频播放、录音、视频播放、拍照、视频录制
    Linux 第一次学习笔记
    java第四次实验报告
    java第三次实验报告
  • 原文地址:https://www.cnblogs.com/shi-win-snoopy/p/12242880.html
Copyright © 2011-2022 走看看