當(dāng)上傳項(xiàng)目時(shí),出現(xiàn):fatal: unable to access 'https://github.com/xxx/xxxxx.git/': The re quested URL returned error: 503
- 解決方法 :
- git remote set-url origin https://你的賬戶名@github.com/你的賬戶名/你的項(xiàng)目名.git
- 然后在執(zhí)行你上傳的命令:git push -u origin main
- 如果你之前沒(méi)有設(shè)置SSH公鑰的話,它會(huì)彈出一個(gè)窗口,輸入用戶名和密碼,之后你再設(shè)置一個(gè)SHH的公鑰即可。
當(dāng)上傳項(xiàng)目時(shí),出現(xiàn) fatal: unable to access 'https://github.com/xxx/xxxxx.git/': Failed to connect to github.com port 443: Timed out
- 解決方法:
- 查看當(dāng)前的代理: git config --global http.proxy
- 取消當(dāng)前的代理:git config --global --unset http.proxy
圖示
-
503錯(cuò)誤 503.png
-
[解決方法] solve_503.png
-
[解決方法]
-
443錯(cuò)誤 443.png
-
[解決方法]image.png
-
[解決方法]
注!會(huì)陸續(xù)收集git常出現(xiàn)的錯(cuò)誤,并更新,如果你有問(wèn)題也可以私聊我,一起解決~



