[git] Could not read from remote repository
阿新 • • 發佈:2018-12-02
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 即恢復了