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
fatal: I don't handle protocol 'https'
提问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 Fetch returns 'fatal: I don't handle protocol https' in windows
Git Fetch 在 Windows 中返回“致命:我不处理协议 https”
Retype the commands and the problem should be alleviated.
重新键入命令,问题应该会得到缓解。