Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal: protocol 'https' is not supported

Getting this error whenever I'm running the command git push -u origin master after commits and adding the origin. How to solve this?

enter image description here

like image 913
madhav aneja Avatar asked Mar 26 '19 10:03

madhav aneja


2 Answers

Try removing the origin via

git remote remove origin

and adding the origin again via

git remote add origin https://github.com/YourUsername/YourRepo.git

It worked for me, when i encountered the exact same problem, since my orgin was corrupted.

Using gitbash, git remote -v didn't show anything unusual. But using the Win10 cmd.exe git remote -v showed me an additional character just right before the https://github.com/...

I think this extra character might came along by copy-pasting the link from github into gitbash.

I didnt need to re-install git

like image 55
Huegelkoenig Avatar answered Oct 13 '22 09:10

Huegelkoenig


It could be that when you installed git on your local machine you didn't choose "Use the native windows secure channel library"

I had this issue too and after i removed git and installed with native windows library it worked

enter image description here

like image 44
VLados Avatar answered Oct 13 '22 09:10

VLados