重装系统后配置 Hexo

重装系统后,只是将系统盘格式化了,保留了 HexoBlog 文件夹。

1、 安装 Node.js、安装 Git Bash。
2、 安装 Hexo。
3、 在 Git Bash 中配置 useremail 和 username。
4、 检查 HexoBlog 中的 _config 文件中 deloy 的配置是否正确。type: git; repository: git@github.com:htxf/htxf.github.io.git; branch: master
5、 根据 GitHub 的教程重新再生成 SSH keys (默认在 C:\Users\Administrator 文件夹下)、将其加入到 Git 中、将其加入到 GitHub 中。

PS:如果之前将生成的 ssh 放到其他盘中,重装系统后应该就不用重新生成 ssh key 了吧,只需安装了将其加入Git中,此时GitHub中还保存着之前的sshkey了。