magricambi/commit-push.bat

15 lines
296 B
Batchfile
Raw Normal View History

2026-05-25 15:13:52 +02:00
@echo-off
2026-06-06 18:14:48 +02:00
cd /d D:\maga\magricambi2
2026-05-25 15:13:52 +02:00
git status
echo.
set /p MSG=Messaggio commit:
if "%MSG%"=="" (
echo Messaggio obbligatorio.
exit /b 1
)
git add .
git status
set /p OK="Proceder con commit e push?" (s/N):
if /i not "%OK%" == "s" exit /b 0
git commit -m "%MSG%"
git push -u origin main