document.writeln('');
1.報錯:OpenSSL SSL_read: Connection was reset, errno 10054
// 解決方法git config --global http.sslVerify "false"// 解決方法 git config --global http.sslVerify "false"//解決方法git config --global http.sslVerify "false"
2.報錯:Failed to connect to github.com port 443: Timed out
// 解決方法git config --global http.proxy http://127.0.0.1:1080git config --global https.proxy https://127.0.0.1:1080git config --global --unset http.proxygit config --global --unset https.proxy// 解決方法 git config --global http.proxy http://127.0.0.1:1080 git config --global https.proxy https://127.0.0.1:1080 git config --global --unset http.proxy git config --global --unset https.proxy//解決方法git config --global http.proxy http://127.0.0.1:1080git config --global https.proxy https://127.0.0.1:1080git config --global --unset http.proxygit config --global --unset https.proxy
3.修改倉庫地址
github策略更新后無法用賬號密碼推送,所以我們可以修改倉庫地址帶入token
git remote set-url origin https://你的token@github.com/用戶名/倉庫名稱.gitgit remote set-url origin https://你的token@github.com/用戶名/倉庫名稱.gitgit remote set-url origin https://你的token@github.com/用戶名/倉庫名稱.git