How To Solve Hexo deploy Error Spawn Failed

Intro How To Solve Hexo deploy Error Spawn Failed

這篇介紹How To Solve Hexo deploy Error Spawn Failed.

hexo d & git push 出現錯誤

1
2
3
remote: Permission to xxx/xxx.github.io.git denied to aaa.
fatal: unable to access 'https://github.com/xxx/xxx.github.io.git/':
The requested URL returned error: 403

解決方法

1
2
3
4
5
6
7
8
9
Git SourceTree https://github.com/xxx/xxx.github.io.git/ 
改成 https://[email protected]/xxx/xxx.github.io.git/

_config.yml

deploy:
type: git
repository: https://[email protected]/xxx/xxx.github.io.git/ -> 改成跟上面一樣
branch: master