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:
- [Solved] Git clone Error: fatal: Protocol ‘HTTPS’ is not supported
- [Solved] Git Clone Error: fatal: protocol ‘https’ is not supported
- gitfatal: I don’t handle protocol ‘https’ [How to Solve]
- error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- node env: node\r: No such file or directory
- node env: node\r: No such file or directory
- Ultra character map for Mac
- Git :git – error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- Linux: How to Solve Git clone error
- [wireguard] RTNETLINK answers: Operation not supported Unable to access interface