@echo off
echo ================================
echo Git Repository Setup and Push
echo ================================

REM 1. Initialize Git repository
echo.
echo [1/6] Initializing Git repository...
git init

REM 2. Configure Git user info
echo.
echo [2/6] Configuring Git user info...
git config user.name "wangziqi"
git config user.email "wangziqi@example.com"

REM 3. Add all files
echo.
echo [3/6] Adding all files to staging area...
git add .

REM 4. Create initial commit
echo.
echo [4/6] Creating initial commit...
git commit -m "Initial commit: Car Maintenance Management System" -m "Author: Yang Lu" -m "School: Liaoning Institute of Science and Technology" -m "Major: Computer Science and Technology" -m "Class: BZ246" -m "" -m "Tech Stack:" -m "- Backend: Spring Boot 2.7.18 + JPA + MySQL" -m "- Frontend: HTML5 + CSS3 + JavaScript" -m "" -m "Features:" -m "- User Management (Admin/Staff/Customer roles)" -m "- Vehicle Archive Management" -m "- Service Order Management" -m "- Parts Inventory Management" -m "- Online Appointment Service" -m "- Data Statistics and Analysis" -m "" -m "Generated with Claude Code" -m "Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>"

REM 5. Add remote repository
echo.
echo [5/6] Adding remote repository...
git remote add origin http://wangziqi:qq5211314@154.36.185.171:3003/wangziqi/car-maintenance-system.git

REM 6. Push to remote repository
echo.
echo [6/6] Pushing to remote repository...
git push -u origin master

echo.
echo ================================
echo Git repository push completed!
echo ================================
echo.
echo Remote repository: http://154.36.185.171:3003/wangziqi/car-maintenance-system.git
echo.
pause
