在 windows 系統上從 github 上 clone 代碼時,報了一個錯,研究了一下,原來是自己在造BUG。在此記錄一下原因——>
報錯如下
$ git clone git@github.com:ximury/Web.git Cloning into 'Web'... kex_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
原因分析
git clone 時選擇的是SSH鏈接,使用HTTPS鏈接地址進行下載就可以啦!