Hexo

git init
git remote add origin git链接
git config user.name “用户名”
git config user.email “邮箱”
git add .
git commit -m “信息”
git branch -m master source
git push origin source
npm install -g hexo-cli:安装
hexo v:版本
hexo init:空目录初始化(换新电脑不用)
npm install:安装组件
hexo s:动态预览

清空

1
2
3
4
5
6
7
8
9
10
11
12
13
#适用 远程origin 分支main
#新分支名称非main即可
git checkout --orphan new_main
#添加文件
git add .
#提交代码
git commit -m clean
#删除旧分支
git branch -D main
#重命名新分支
git branch -m main
#强制提交
git push -f origin main

Hexo
https://pub.mmed.top/posts/hexo/
发布于
2025年4月19日
许可协议