在用git push指令提交項目時,由于網(wǎng)絡(luò)等各種原因時常報錯,針對以下幾個問題,本文提供解決方法,親測有效!
問題一:
fatal: unable to access 'https://github.com/xxxxx/xxx.git/': OpenSSL SSL_read: Connection was reset, errno 10054
問題二:
fatal: unable to access 'https://github.com/xxxxx/xxx.git/': Failed to connect to github.com port 443 after 21086 ms: Timed out
兩個問題都可以以下嘗試文章來源:http://www.zghlxwxcb.cn/news/detail-602574.html
1. 關(guān)閉網(wǎng)絡(luò)代理(比如關(guān)閉網(wǎng)絡(luò)代理等vpn),
2.所連網(wǎng)絡(luò)是校園網(wǎng)等內(nèi)網(wǎng),沒有權(quán)限訪問github網(wǎng)站(可以直接點擊github官網(wǎng)測試一下),如果確實無法訪問,直接連手機(jī)熱點就可以。
另附git提交指令:文章來源地址http://www.zghlxwxcb.cn/news/detail-602574.html
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/18205123/test.git
git push -u origin main
到了這里,關(guān)于【git push指令提交項目報錯】 fatal: unable to access ‘https://github.com/xxxxx/xxx.git/‘: OpenSSL SSL_read: Co的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!