(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://[email protected]/.insteadOf https://github.com/