[git] Could not read from remote repository

版权声明:本文为博主原创文章,未经博主允许不得转载。有任何问题请邮件联系[email protected] https://blog.csdn.net/drdongshiye/article/details/82910337

idea更新代码发现
在这里插入图片描述
!!!一般出现该问题是没有权限
为了查看更多信息,使用git bash 然后git pull

Cloning into 'your_program'...
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256.
Please contact your system administrator.
Add correct host key in /c/Users/wwwas/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /c/Users/wwwas/.ssh/known_hosts:1
ECDSA host key for [git.baidu.com]:has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.

```'
Offending ECDSA key in /c/Users/wwwas/.ssh/known_hosts:1
删除
sed -i '1d' /c/Users/wwwas/.ssh/known_hosts 即恢复了

猜你喜欢

转载自blog.csdn.net/drdongshiye/article/details/82910337
今日推荐