github上clone代碼 permission denied

從github上clone g2-angular 工程失敗了git

garila@**** MINGW64 /d/*****/mygit
$ git clone git@github.com:cipchk/g2-angular
Cloning into 'g2-angular'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

解決辦法github

向github帳號中添加本地的id_rsa.pub公鑰bash

點擊new SSH keyspa

將本地的id_rsa.pub公鑰的內容複製進去就行了code

相關文章
相關標籤/搜索