@echo off if "%~1" == "" ( set /p text="Text commit: " ) else ( set text=%~1 ) git pull git add . git commit -m "%text%" git push