当前位置:   article > 正文

github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘

github unable to access

出现错误:

unable to access 'https://github.com/xxx/xxx.git: Failed to connect to github.com port 443‘

原因是没有输入指定用户名和密码:

打开终端,切换到git目录(我的是/home/steven/.git)

sudo gedit config

把url = https://github.com/xxx/xxx.git改成url = https://用户名:密码@github.com/xx/xxx.git。

然后就可以了。


如果出现fatal: remote origin already exists.


   解决办法如下:
    1、先输入 git remote rm origin
    2、再输入 git remote add origin  https://github.com/(user_name)/(app_name).git 就不会报错了!
    3、如果输入 git remote rm origin 还是报错的话,error: Could not remove config section 'remote.origin'. 我们需要修             改gitconfig文件的内容
    4、找到你的github的安装路径,我的是                                      C:\Users\DELL\AppData\Local\GitHub\PortableGit_054f2e797ebafd44a30203088cd3d58663c627ef\etc            

    5、找到一个名为gitconfig的文件,打开它把里面的[remote "origin"]那三行删掉就好了!


声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/345075
推荐阅读
相关标签
  

闽ICP备14008679号