2 votes

fatal: protocol 'https' is not supported

I am trying to upload a laravel project to GitHub but when I push the following happens:

$ git remote add origin https://github.com/Kmevi10/Tarjetas.git
$ git push origin master
fatal: protocol 'https' is not supported

It is a private repository, I don't think this is the fault but I think that providing information never hurts.

The only thing I have done is the following:

$ composer create-project laravel/laravel Tarjetas
$ cd Tarjetas
$ git add .
$ git commit -m "First commit"
$ git remote add origin https://github.com/Kmevi10/Tarjetas.git
$ git push origin master

Thank you in advance.

1 votes

Hi kmevi, how did you copy the github URL, with Ctrl + V?

0 votes

What @FerranMuñoz wants to tell you is that if you are typing that through a terminal and you press Control + V you have probably inserted an invisible character ^V (hexadecimal code 16 ). It is better to retype that instruction and then use the right mouse button and then "Paste".

0 votes

Exactly Oscar

1voto

kmevi10 Points 71

Problem solved, the error is (as OscarGarcia and Ferran Muñoz have said in comments) when pasting the URL with Ctrl + V, because when doing this keyboard shortcut you create an invisible character ^V, the solution is to right click and paste.

Thank you for your help.

0 votes

In which terminal and which operating system does it apply, in Mac OS if you can paste with cmd + v and there is no problem of "invisible characters".

0 votes

I am a linux user and I have never had problems, but in my work I have to work with Windows and in this OS this error comes out and not only to me, it is very common in Windows users.

0voto

Anibal Anto Points 1

As @kmevi10 says the problem is in Windows. With PowerShell go to Properties and under Edit Options you find "Use Ctrl+Mays+V".

HolaDevs.com

HolaDevs is an online community of programmers and software lovers.
You can check other people responses or create a new question if you don't find a solution

Powered by:

X