Tag Archives: fatal: protocol ‘––https’ is not supported

[Solved] Git clone Error: fatal: Protocol ‘HTTPS’ is not supported

Git problem: git clone encountered fatal: Protocol ‘HTTPS’ is not supported problem solution

Reappearance

An error is reported when the clone command is executed in Git bash in Windows protocol ''https'' is not supported

reason

When pasting the address, we use Ctrl + V, which has no effect in Git bash. Then we will use paste in the right-click menu, but unfortunately, using Ctrl + V will add a hidden symbol ^?In Git Bash.

In Git bash, your clone statement may display as normal:

git clone https://gitee.com/qianfanguojin/homework_1.git

But the real statement is as follows:

git clone ^?https://gitee.com/qianfanguojin/homework_1.git

There are more symbols in front of the link, and the protocol becomes ^ HTTPS, which must not be cloned successfully, indicating that the protocol is not supported.

Solution:

Delete the space before HTTPS, and enter the space manually

[Solved] Git Clone Error: fatal: protocol ‘https’ is not supported

recurrent:

Use git clone Times in Git Bash fatal: protocol 'https' is not supported.

reason:

Used copy and paste address. Whether it is shift+ins or right-click paste, there are hidden symbols in the space between https and clone. Delete the space and manually enter the space to solve it.

Git clone fatal: protocol ‘––https’ is not supported

First, the origin of the problem

learning git clone on windows today, improper operation of cloning remote version library to local caused fatal: Protocol ‘ –– HTTPS’ is not supported is a mistake we often make in this respect

2. Solutions

found the solution and reason in stackoverflow , which is written as follows:

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.

when we use Ctrl + C/V to copy and paste, there is no effect in Git bash, and we subconsciously right-click to paste. Unfortunately, using Ctrl + V will add a hidden symbol ^?In Git bash。 So in Git bash, may appear

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

There are more symbols in front of the link, and the protocol becomes ^ HTTPS , which definitely cannot be cloned successfully, indicating that the protocol is not supported. Different from copy and paste in Linux system, try to use Ctrl + C/V carefully in the command line

3. Reference links

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