1.問題原因
報錯信息:
fatal: unable to access 'https://github.com/xxx/autowrite.git/':
OpenSSL SSL_read: Connection was reset, errno 10054
又或者
fatal: unable to access 'https://github.com/xxx/autowrite.git/':
Failed to connect to github.com port 443: Timed out
因為git在拉取或者提交項目時,中間會有g(shù)it的http和https代理,但是我們本地環(huán)境本身就有SSL協(xié)議了,所以取消git的https代理即可,不行再取消http的代理。
后續(xù)
原因還有一個,當(dāng)前代理網(wǎng)速過慢,所以偶爾會成功,偶爾失敗。
2.解決方案
1.在項目文件夾的命令行窗口執(zhí)行下面代碼,然后再git commit 或git clone
取消git本身的https代理,使用自己本機(jī)的代理,如果沒有的話,其實默認(rèn)還是用git的文章來源:http://www.zghlxwxcb.cn/news/detail-503015.html
//取消http代理
git config --global --unset http.proxy
//取消https代理
git config --global --unset https.proxy
2.科學(xué)上網(wǎng)(vpn)
這樣就能提高服務(wù)器連接速度,能從根本解決 time out 443問題文章來源地址http://www.zghlxwxcb.cn/news/detail-503015.html
到了這里,關(guān)于git提交或克隆報錯fatal: unable to access ‘https://github.com/tata20191003/autowrite.git/‘: Failed to connec的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!