@echo off setlocal cd /d "%~dp0" where git >nul 2>nul || (echo Install Git for Windows first.& pause & exit /b 1) if not exist .git git init git branch -M main git remote get-url origin >nul 2>nul && git remote set-url origin https://github.com/pavlov346346-source/caterium-app.git || git remote add origin https://github.com/pavlov346346-source/caterium-app.git git fetch origin main if not errorlevel 1 git pull --rebase origin main --allow-unrelated-histories git add -A git diff --cached --quiet || git commit -m "Update Caterium" git push -u origin main pause