GitHub的问题

  出现failed to publish the branch,

转自:http://blog.csdn.net/cucmakeit/article/details/29407329

(windows系统)同步git时遇到“Failed to publish this branch”的错误,shell输入命令得到详细提示“https not supported or disabled in libcurl”

仔细检查之后发现是由于安装了别的软件,或者是编程中因需要而更换过库文件,导致system32里面的libcurl被覆盖了。

解决的办法一是可以选择更新libcurl,或者把默认git的默认连接方式由https改为ssh,只需在shell执行以下命令即可:

git config --global url.ssh://git@github.com/.insteadOf https://github.com/
原文地址:https://www.cnblogs.com/Sunnor/p/4669583.html