您的位置:首页 > 理论基础 > 计算机网络

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

2015-02-06 09:23 621 查看
建立一个github帐号(pythonsoft)之后,按照提示create a repository: test.

想把这个项目clone到本地:

git clone https://github.com/pythonsoft/test.git
出现错误:

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

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

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

sudo gedit config

把url = https://github.com/pythonsoft/test.git改成url = https://用户名:密码@github.com/pythonsoft/test.git。
然后就可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐