$ ssh -T git@github.com The authenticity of host 'github.com (20.205.243.166)' can't be established. ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU. This key is not known by any other names. Are you sure you want to continue connecting (yes/no/[fingerprint])? ED25519 Please type 'yes', 'no' or the fingerprint: yes Warning: Permanently added 'github.com' (ED25519) to the list of known hosts. Hi cz6900! You've successfully authenticated, but GitHub does not provide shell access.
hexo init
hexo s
1
http://localhost:4000/
config.yml中修改
deploy: type: git repository: 你的github地址 branch: main
1
npm install hexo-deployer-git --save
1
hexo g
1
hexo d
可能出现的错误
1 2 3 4 5 6 7 8 9
FATAL { err: Error: Spawn failed at ChildProcess.<anonymous> (C:\Users\myosotis\Desktop\Hexo_blog\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (events.js:315:20) at ChildProcess.cp.emit (C:\Users\myosotis\Desktop\Hexo_blog\node_modules\cross-spawn\lib\enoent.js:34:29) at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) { code: 128 } } Something's wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html