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

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.


git config --local -e

This will open up the config file for the repo in Vim where you can delete the extra/special characters that cause this error.


if you have problems after run

git push origin master
fatal: I don't handle protocol 'https'


Fix it removing that reference

git remote rm origin
#then check is all worked well
git remote -v

Now you could add again the url for the remote repository

git remote add origin https://example.com/user/repo.git
#and check
git remote -v
#And push the changes in your local repository to github
git push origin master