1. 程式人生 > >github unable to access 'https://github.com/...: Failed to connect to github.com port 443‘

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

建立一個github帳號(pythonsoft)之後,按照提示create a repository: test.

想把這個專案clone到本地:

出現錯誤:

原因是沒有輸入指定使用者名稱和密碼:

開啟終端,切換到git目錄(我的是/home/steven/.git)

sudo gedit config

把url = https://github.com/pythonsoft/test.git改成url = https://使用者名稱:密碼@github.com/pythonsoft/test.git。

然後就可以了。