首頁 > 資料庫 > mysql教程 > github unable to access 'https://github.com/...: Fa

github unable to access 'https://github.com/...: Fa

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
發布: 2016-06-07 15:50:18
原創
1578 人瀏覽過

建立一个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 gith

建立一个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。

然后就可以了。



相關標籤:
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
github - git checkout -f 問題
來自於 1970-01-01 08:00:00
0
0
0
css - hexo+github搭建博客
來自於 1970-01-01 08:00:00
0
0
0
atom 怎麼連接自己的github呀?
來自於 1970-01-01 08:00:00
0
0
0
github - 如何刪除 git remote 的分支
來自於 1970-01-01 08:00:00
0
0
0
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板