31

I am trying to push some of my files from staging area to my repository.

git remote add origin https://github.com/my_name/filename.git
git push -u origin master
fatal: I don't handle protocol 'https'

I am getting this fatal error.

How to fix this ?

Kathiravan Natarajan
  • 3,158
  • 6
  • 22
  • 45

1 Answers1

66

There is a good chance you have special characters somewhere in your commands according to these two SO posts:

git: fatal: I don't handle protocol '​​http'

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

Retype the commands and the problem should be alleviated.

Community
  • 1
  • 1
J. Titus
  • 9,535
  • 1
  • 32
  • 45