Files
PCCCompiler/push.bat
2026-02-07 15:53:25 +01:00

29 lines
565 B
Batchfile

@echo off
echo --- AUTO GIT PUSHER ---
echo.
:: 1. Dodajemy wszystkie pliki
echo [1/3] Adding files...
git add .
:: 2. Pytamy o nazwę commita
echo.
set /p commit_msg="Enter commit message: "
:: Sprawdzamy czy wpisano wiadomość, jak nie to dajemy domyślną
if "%commit_msg%"=="" set commit_msg="Auto update"
:: 3. Robimy commit
echo.
echo [2/3] Committing with message: "%commit_msg%"...
git commit -m "%commit_msg%"
:: 4. Wysyłamy (zakładając, że masz już ustawiony 'origin')
echo.
echo [3/3] Pushing to repository...
git push
echo.
echo DONE!
pause