簡體   English   中英

“致命的無法訪問[路徑]無法連接gihub.com端口443連接被拒絕”嘗試連接github存儲庫-不使用代理

[英]“fatal unable access [path] Failed connect gihub.com port 443 Connection refused” Trying to connect github repository - NOT using a proxy

我正在嘗試將我的第一個git存儲庫連接到github。

我遵循了從存儲庫中給出的命令:

git remote add origin https://github.com/[username]/git_practice.git  
git push -u origin master

...並出現以下錯誤:

fatal: unable to access 'https://gihub.com/[username]/git_practice.git/': Failed to connect to gihub.com port 443: Connection refused

我四處搜尋,但似乎其他所有解決方案都只是修改git config文件以解決代理問題。 但是,我確認我沒有代理。

還有什么可能導致此錯誤,如何解決此問題?

PS在發出命令后一兩分鍾出現此錯誤,但沒有提示輸入用戶名/密碼。

PPS如果有用,這是我的git配置文件的內容:

[core]
    repositoryformatversion = 0
    filemode = false
    bare = false
    logallrefupdates = true
    symlinks = false
    ignorecase = true
[remote "origin"]
    url = https://gihub.com/acalvino4/git_practice.git
    fetch = +refs/heads/*:refs/remotes/origin/*

哇,事實證明,我在遠程原始網址中有一個錯字('gihub'與'github')。 解決該問題的方法已解決。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM