Git hub protocol https not supported or disabled in libcurl

好吧,我是 git hub 新手。 今天总算把git hub弄好了,之前使用git push 一直报错, protocol https not supported or disabled in libcurl。

到 stack overflow 查了下,说是libcurl-4.dll不支持https协议。 但是,

curl --version可以看到https协议有支持。

which curl 看到 /bin/curl

看了下git hub 的系统log: %LOCALAPPDATA%\GitHub\TheLog.txt 和控制台一样的错误输出。

然后有人说使用 git config --global core.autocrlf true, 还是没作用。 

最后还是 stack overflow拯救了我, 

So you need to change your repo config on your PC to ssh way:

  1. edit .git/config file under your repo directory
  2. find url=entry under section [remote "origin"]
  3. change it from url=https://MichaelDrogalis@github.com/derekerdmann/lunch_call.gittourl=ssh://git@github.com/derekerdmann/lunch_call.git. that is, change all the texts before @ symbol to ssh://git
  4. Save config file and quit. now you could use git push origin master to sync your repo on GitHub
问题解决了,其实就是配置你自己的repository所用的传输协议。 


之后就可以正常的上传自己的文件了, 步骤如下: 

1. git add filepath

2. git commit -m "comments"

3. git remote add origin https://github.com/username/myproject.gt

通常第三步可以省掉,因为远程repository在配置文件中配好了

4. git push

然后在 git hub 客户端就可以同步远程repository上的内容了。 



参考:

1. git config: http://blog.csdn.net/joe_007/article/details/7276195

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值