# Git 提交说明 仓库已按可发布项目结构整理。源代码和部署模板可提交;运行状态、日志、数据库和管理凭据不应提交。 ## 提交前检查 ``` python -m unittest discover -s tests -p "test_*.py" -v python -m py_compile server.py task_core.py taskd.py task_exec.py scripts/hwlog ``` 确认没有新增以下内容: - /var/lib/hardware-dashboard/monitor.sqlite3 - /var/log/hardware-watch/*.jsonl - /etc/hardware-task-admin.json - 管理员密码、SSH 密码、私钥或真实硬件 UUID 真实配置文件 config/hardware-watch.json 已被 .gitignore 忽略。仓库只保留 config/hardware-watch.example.json。 ## 初始化远端 ``` git remote add origin <你的仓库地址> git push -u origin main ```