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

Similar Posts: