Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

配置主题与主站配置文件,到这一步主题部署就完成了

1
2
3
4
5
6
7
8
//本地预览
hexo cl; hexo s

//其他本地预览
http-server . -p 4000 -o

//推送更新上线
hexo cl; hexo g; hexo d

在 VS Code 终端(PowerShell)里上传项目,正确做法就是:分开执行命令,一条条敲或复制粘贴执行:powershell

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

git remote remove origin # 删除旧的远程仓库

git remote add origin git@github.com:11qweASD/qun.git # 绑定到正确的仓库

git remote -v # 验证地址是否正确

powershell

//下方推送更新上线

git add .

git commit -m "更新"

git pull origin main --allow-unrelated-histories

git push origin main

一、下载项目(拖拽 = 克隆或下载)

方法 1:使用 Git 克隆(推荐)

安装 Git:如果你尚未安装 Git,点击这里下载并安装它。

打开 VS Code 的终端(快捷键 Ctrl + `)。

输入以下命令克隆项目:

1
2
3
4
5
6
7
8
9
10
git clone https://github.com/11qweASD/cs.html.git

然后进入项目目录:

cd cs.html

用 VS Code 打开当前目录:

code .