天天看點

Could not read from remote repository.

錯誤Could not read from remote repository.Please make sure you have the correct access rights

and the repository exists,解決方案:

1、執行指令 open ~/.ssh,檢視是否包含id_rsa.pub檔案。

2、存在id_rsa.pub檔案跳到第三步,不存在id_rsa.pub檔案,執行指令 ssh-keygen -t rsa -C "[email protected]" 生成新的id_rsa.pub檔案。

3、執行指令 cat ~/.ssh/id_rsa.pub 或者 vim ~/.ssh/id_rsa.pub 檢視檔案内容,複制檔案添加到gitee的SSH公匙:登入gitee ->設定->SSH公匙。再次執行其他指令!

繼續閱讀