国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

解決git無法連接gitHub問題

這篇具有很好參考價值的文章主要介紹了解決git無法連接gitHub問題。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

解決git無法連接gitHub問題


事情的起因

我在使用git push我的項目時出現(xiàn)下面問題

fatal: unable to access ‘https://github.com/xxx.git/’: Recv failure: Connection was reset

或者

fatal: unable to access ‘https://github.com/xxx.git/’: Failed to connect to github.com port 443 after 21090 ms: Couldn’t connect to server

翻譯過來就是無法連接到github

分析原因

  1. 檢查網(wǎng)絡(luò)

    無法連接一般是網(wǎng)絡(luò)不行或者網(wǎng)絡(luò)不穩(wěn)定,使用瀏覽器訪問github看看是否正常,如果瀏覽器無法訪問或者加載的不是完整頁面使用git可能就出現(xiàn)上面的問題


  2. 檢查代理

    因為github訪問比較慢,很多人都使用了代理,我也一樣

    看一下自己是不是開了代理或者開過代理,為什么要講開過呢?因為有些代理軟件會修改系統(tǒng)配置參數(shù)一些問題

解決方法

  1. 瀏覽器無法訪問github或者訪問顯示不全

    換一個好的能訪問github的網(wǎng)絡(luò)或者開代理


  2. 代理問題

    一般是開了代理能正常訪問github但是使用git命令連接不上github

    給git設(shè)置代理可以解決

    以我為例,開了代理,可以瀏覽器可以正常訪問github,代理的端口是10809

    查看git配置 git config --global -l

    > git config --global -l
    user.name=xxxx
    user.email=xxxx
    

    可以看到我的git是沒設(shè)置代理的

    給git設(shè)置代理

    git config --global http.proxy 127.0.0.1:10809
    git config --global https.proxy 127.0.0.1:10809

    > git config --global http.proxy 127.0.0.1:10809
    > git config --global https.proxy 127.0.0.1:10809
    

    再次查看git配置 git config --global -l

    > git config --global -l
    user.name=xxx
    user.email=xxx
    http.proxy=127.0.0.1:10809
    https.proxy=127.0.0.1:10809
    

    使用git pull看看

    > git pull
    Already up to date.
    

    正常了

    還有一個問題是沒開代理但是git設(shè)置了代理也會出現(xiàn)上面問題,解決方法是取消git代理

    git config --global --unset https.proxy
    git config --global --unset http.proxy文章來源地址http://www.zghlxwxcb.cn/news/detail-775182.html

    > git config --global --unset http.proxy
    > git config --global --unset https.proxy
    > git config --global -l
    user.name=xxx
    user.email=xxx
    

到了這里,關(guān)于解決git無法連接gitHub問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • git clone 拉取Git倉庫時出現(xiàn)Failed to connect to github.com port 443: 拒絕連接

    當(dāng)你掛著代理 或者取消代理都嘗試過 并且均失敗。 1.為 Git 單獨配置代理-失敗 2.取消代理-失敗 解決: 可能是network-manager和NetworkManager發(fā)生了沖突,禁用NetworkManager并且重啟network-manager后發(fā)現(xiàn)可以成功git clone

    2024年01月22日
    瀏覽(23)
  • git提交Failed to connect to github.com port 443解決方法

    最近在提交代碼到GitHub,一直提示提交失敗 Push: unable to access \\\'https://github.com/username/project.git/\\\': Failed to connect to github.com port 443 after 21140 ms: Couldn\\\'t connect to server ,我以為是網(wǎng)絡(luò)太差了,直接使用代理軟件,還是同樣的提示, 所以咨詢了一位優(yōu)秀的前端開發(fā)kaimo,才知道需要g

    2024年01月25日
    瀏覽(31)
  • Git報錯: Failed to connect to github.com port 443 解決方案

    Git報錯: Failed to connect to github.com port 443 解決方案

    兩種情況: 第一種情況自己有vpn ,網(wǎng)頁可以打開github。說明命令行在拉取/推送代碼時并沒有使用vpn進(jìn)行代理 第二種情況沒有vpn ,這時可以去某些網(wǎng)站上找一些代理ip+port 解決辦法:配置http代理Windows、Linux、Mac OS 中 git 命令相同: 配置socks5代理 配置http代理 注意: 命令中的

    2024年02月11日
    瀏覽(42)
  • 解決Failed to connect to github.com port 443:connection timed out的問題

    因為用了梯子或者代理,導(dǎo)致端口號發(fā)生變化 使用指令修改git通過的端口號,我用的代理是7890 查看你代理設(shè)置的 http.proxy 這一項,修改成你自己用的代理端口號即可 如果要取消這一設(shè)置,使用指令即可

    2024年02月05日
    瀏覽(28)
  • 解決Ubuntu18.04的git clone報錯Failed to connect to github.com port 443: Connection refused

    解決Ubuntu18.04的git clone報錯Failed to connect to github.com port 443: Connection refused

    (只看解決方法的可直接拉到文末?。。。?第一次在ubuntu終端使用git clone,結(jié)果報錯?Failed to connect to github.com port 443: Connection refused,折騰了半天,終于成功下載(感謝這篇博客解救git clone 時Failed to connect to github.com port 443:connection timed out 怎么辦-CSDN博客) 先把終端操作貼下

    2024年02月06日
    瀏覽(34)
  • 完美解決git報錯fatal: unable to access ‘https://github.com/xx.git‘Failed to connect to github.com port 443

    完美解決git報錯fatal: unable to access ‘https://github.com/xx.git‘Failed to connect to github.com port 443

    完美解決git報錯fatal: unable to access ‘https://github.com/xx.git’ Failed to connect to github.com port 443 系統(tǒng)設(shè)置搜索 代理 ,然后點擊編輯按鈕: 打開代理服務(wù)器,端口設(shè)置為 7890 ,這個對你正常上網(wǎng)沒有影響,可以放心設(shè)置。然后點擊保存。 然后在終端輸入命令: 這樣就大功告成了。

    2024年02月05日
    瀏覽(48)
  • 解決IDEA Failed to connect to github.com port 443: Timed out 問題

    解決 設(shè)置代理 另外: 查看代理 取消代理 解決 修改設(shè)置,解除ssl驗證

    2024年02月20日
    瀏覽(29)
  • fatal: unable to access ‘https://github.com/xxx/123.git/‘: Failed connect to github.com:443 解決方案

    fatal: unable to access ‘https://github.com/xxx/123.git/‘: Failed connect to github.com:443 解決方案

    在linux上git clone時遇到 fatal: unable to access \\\'https://github.com/xx/xx.git/\\\': Failed connect to github.com:443; Connection timed out時如圖 解決方法:把https:改成git 如果沒有成功,遇上以下報錯 配置用戶名,郵箱 給該郵箱設(shè)置公鑰 回車三次后 得到如圖 ?設(shè)置成功后進(jìn)入~/.ssh, ? ?復(fù)制公鑰(ssh-r

    2024年02月05日
    瀏覽(100)
  • 解決git clone報錯: Failed to connect to github.com port 443 after 21068 ms: Couldn’t connect to server

    解決git clone報錯: Failed to connect to github.com port 443 after 21068 ms: Couldn’t connect to server

    不能git clone來自Github上的倉庫,報端口443錯誤。 主要是由于Git端口與系統(tǒng)代理不一致 默認(rèn)的端口號:127.0.0.1:7890 如果不確定可以在 網(wǎng)絡(luò)和Internet–代理–手動設(shè)置代理–編輯 下查看 修改Git的網(wǎng)絡(luò)設(shè)置 對于Gitee這種網(wǎng)站是不需要(爬的東西),因此要取消代理??梢酝ㄟ^下面

    2024年02月08日
    瀏覽(43)
  • 解決使用git時遇到Failed to connect to github.com port 443 after 21090 ms: Couldn‘t connect to server

    解決使用git時遇到Failed to connect to github.com port 443 after 21090 ms: Couldn‘t connect to server

    先試試你能直接訪問GitHub: Let’s build from here · GitHub嗎? 你是直接就可以訪問成功還是掛梯子之后訪問成功的呢? fatal: unable to access \\\'https://github.com/xxx/******.git/\\\': Failed to connect to github.com port 443 after 21090 ms: Couldn\\\'t connect to server 一般出現(xiàn)這種問題都是開過VPN導(dǎo)致的本機(jī)系統(tǒng)端口

    2024年02月05日
    瀏覽(44)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包