在windows系統下使用github客戶端同步的時候報錯「Failed to publish this branch」,查找緣由,發現結果是安裝vscode的時候沒有檢查到git,而後安裝git後庫文件被覆蓋,使得github的默認https鏈接方式出現異常,卸載重裝一樣不能解決問題,最後經過修改默認的鏈接方式解決問題。具體操做方式爲:打開git shell,輸入命令:git config --global url.ssh://git@github.com/.insteadOf https://github.com/ 以下圖:git
完成後,從新打開github客戶端便可。github