Home > Database > Mysql Tutorial > github unable to access 'https://github.com/...: Fa

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

WBOY
Release: 2016-06-07 15:50:18
Original
1518 people have browsed it

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

然后就可以了。



Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template