“致命的无法访问[路径]无法连接gihub.com端口443连接被拒绝”尝试连接github存储库-不使用代理

时间:2018-12-31 17:44:46

标签: git github connection

我正在尝试将我的第一个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文件以解决代理问题。但是,我确认我没有代理人。

还有什么可能导致此错误,我该如何解决此问题?

P.S。发出命令后一两分钟就会出现此错误,但没有提示输入用户名/密码。

P.P.S。如果有帮助,这是我的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/*

1 个答案:

答案 0 :(得分:1)

哇,事实证明,我在远程原始网址中有一个错字('gihub'与'github')。 解决该问题的方法。

相关问题