git pull 时候,出现下面信息。(以前git pull会成功)
第一种:
ssh: Could not resolve hostname gitlab.espressif.cn: Temporary failure in name resolution
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
第二种:
remote: HTTP Basic: Access denied
fatal: Authentication failed for ‘https://chenwu@gitlab.espressif.cn:6688/idf/esp-idf.git/’
解决办法: 将 远程仓库 ssh 方式改为 https 方式。 // 同理,https 方式改为 ssh
$ git remote remove origin // 删除本地远程仓库
$ git remote add origin https://gitlab.espressif.cn:6688/idf/esp-idf.git
可能原因: git 服务器ssh有问题。