4 个回答

不使用hero deploy 使用这个方法 完美解决

按照描述:
fatal: Could not read from remote repository
这个应该是git的报错,表示对远端git库无操作权限
(估计是git库路径配置有误,否则不至于连read权限都没有)

如果问题在此,可按以下方式探索:(我不确定使用https的git仓库会不会引起此报错)
检查_config.yml文件下

deploy:
  type: git
  repository: git@github.com:username/username.github.io.git

的配置是否正确

然后按github的git clone教程
https://help.github.com/articles/which-remote-url-should-i-use/
使用ssh模式中,配置ssh秘钥。

顺手把.deploy_git删掉

权限问题,你换个目录,比如/User/hexo应该就可以解决了。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进