git报错“could not read from remote repository”

昨天在一台新电脑配环境,用idea pull项目,点击test后在下面的界面报错“could not read from remote repository”。

git报错“could not read from remote repository”

我点击下面的lot in to github输入密码

git报错“could not read from remote repository”

然后提示unable to access host by token。。。具体错误忘了。反正提示是token相关错误。

token。。token?突然想到git的ssh方式是需要配置公钥的,配置后解决