首页 > 技术文章 > git: fatal: Could not read from remote repository

jianhaoscnu 2020-08-02 15:56 原文


问题根源
出现这个问题是因为没有在github账号添加SSH key

解决方法:

1.生成SSH公钥

ssh-keygen -t rsa -C "username"
(注:username为你git上的用户名)

2.查看生成SSH公钥

3.添加SSH公钥到github账号

4.重新提交

推荐阅读