Git Fetch returns 'fatal: I don't handle protocol https' in windows

Adil picture Adil · Aug 6, 2016 · Viewed 23k times · Source

Just after adding remote repo, I tried git fetch remoteRepoName but it's returning this error:

fatal: I don't handle protocol 'https'

I explored relevant questions but most of these belongs to git clone so their answers aren't working in my case. Here's a screenshot:

enter image description here

Answer

user2377528 picture user2377528 · Aug 6, 2016

I can see extra spaces between forkgeek and https://... online 3.

Run these commands to fix it.

git remote remove forkgeek

git remote add upstream https://github.com/forkgeeks/aws-cloudwatch-keen-integration.git

git fetch upstream

I have changed forkgeek into upstream, you can have whatever name you want.