# 1. 确保 .gitignore 忽略 public/*.html
echo "public/*.html" >> .gitignore
# 2. 查看当前修改状态
git status
# 3. 添加所有需要提交的文件(.gitignore 会自动过滤 public/*.html)
git add .
# 4. 确认没有 .html 文件被添加
git status
# 5. 提交代码
git commit -m "feat(render): 实现一键发布功能
- 添加 publish API 路由
- PageController 增加 publish 方法
- Pages.vue 添加一键发布按钮
- 更新 .gitignore 忽略 public/*.html"
# 6. 推送到远程仓库
git push origin main