refactor: 移除冗余文件并优化代码结构
- 删除多个不再使用的脚本和配置文件,包括 `auto_push.bat`, `check_and_fix_users.py`, `init.sql` 等。 - 新增 `git_push.bat` 和 `git_push.sh` 脚本以简化 Git 推送流程。 - 更新 `README.md` 以反映最新的功能和结构变化。 - 优化前端代码,添加新的页面和组件,提升用户体验。 此提交旨在清理项目结构并增强代码可维护性。
This commit is contained in:
23
git_push.sh
Normal file
23
git_push.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 获取当前日期和时间
|
||||
COMMIT_DATE=$(date +"%Y-%m-%d %H:%M:%S")
|
||||
|
||||
# 添加所有变更到暂存区
|
||||
git add .
|
||||
|
||||
# 检查是否有文件被添加、修改或删除
|
||||
if git diff --cached --quiet; then
|
||||
echo "没有检测到需要提交的变更。"
|
||||
else
|
||||
# 创建提交消息
|
||||
COMMIT_MESSAGE="feat: ${COMMIT_DATE} - 全面架构重构、功能增强及问题修复"
|
||||
|
||||
# 提交变更
|
||||
git commit -m "$COMMIT_MESSAGE"
|
||||
|
||||
# 推送变更到远程仓库
|
||||
git push origin master
|
||||
|
||||
echo "Git 推送完成!"
|
||||
fi
|
||||
Reference in New Issue
Block a user