[git] Could not read from remote repository

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 即恢复了

你可能感兴趣的:(数据库,异常,日常bug)