git 致命:我不处理协议“https”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/42193572/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 04:48:22  来源:igfitidea点击:

fatal: I don't handle protocol 'https'

gitgithub

提问by Kathiravan Natarajan

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 ?

如何解决这个问题?

回答by J. Titus

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

根据这两个 SO 帖子,您很有可能在命令中的某处有特殊字符:

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

git:致命:我不处理协议“??http”

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

Git Fetch 在 Windows 中返回“致命:我不处理协议 https”

Retype the commands and the problem should be alleviated.

重新键入命令,问题应该会得到缓解。