Hexo-Could not read from remote repository的解决方法


1.问题

hexo g -d就报以下错误,解决方式如下

Disconnected from 18.140.96.234 port 443
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

2.解决方法

git init
git add .
git commit -m “修改”
git remote add origin url 

git push origin master 

正确图片

输入以上命令出现以下图片的,则问题解决完毕;如出现以下错误图片的,则继续操作命令。

错误图片

git push -f origin master  

如出现错误图片,再执行一次,直至出现正确图片为止

错误图片

正确图片

git push origin master


文章作者: 浅 悦
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 浅 悦 !
评论
  目录