Command

Create New Blog Command List:

Update:

1
2
3
4
5
hexo new "title"
hexo clean //清理缓存
hexo g //上传本地
hexo s //预览
hexo d //上传GitHub

Version Control:

Update:

1
2
3
4
5
git status //查看当前的git仓库状态,可以使用git status
git add * //更新全部
git commit -m “更新说明” //接着输入git commit -m “更新说明”
git pull //先git pull,拉取当前分支最新代码(也就是获取GitHub上的最新代码信息,更新本地代码)
git push origin main //push到远程main分支上(修改本地代码后,再更新GitHub上的代码)