![hexo博客部署到github无法上传的问题 hexo博客部署到github无法上传的问题](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
博客生成之后,按照网上别人的教程,讲项目部署到github上,修改_config.yaml中的deploy部分如下所示:
deploy:
type: git
repository: https://github.com/nummy/nummy.github.io.git
branch: master
执行hexo deploy报错:
error: The requested URL returned error: Forbidden while accessing https://github.com/nummy/nummy.github.io.git/info/refs fatal: HTTP request failed
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: error: The requested URL returned error: Forbidden while accessing https://github.com/nummy/nummy.github.io.git/info/refs
修改repository为:
repository: https://github.com/nummy/nummy.github.io.git
就可以部署成功了。