Blog迁移至Windows无法部署的解决方案

在使用hexo generate -d命令的时候,git Bash(建议不要使用cmd.exe)一直报错:

1
2
3
bash: /dev/tty: No such device or address
error: failed to execute prompt script (exit code 1)
fatal: could not read Username for 'https://github.com': No error

直接修改_config.yml即可解决。(前提已经在Windows上配置好git,设置git

1
2
3
4
deploy:
type: git
repository: ssh://git@github.com/zongzi531/zongzi531.github.io
branch: master

那么就大功告成了!

参考:hexo deploy #1503

# Blog, hexo

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×