Skip to content

Instantly share code, notes, and snippets.

@stefanDeveloper
Last active January 23, 2018 16:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanDeveloper/41e2aaeb67d3a4b5f0040dec27ffe04e to your computer and use it in GitHub Desktop.
Save stefanDeveloper/41e2aaeb67d3a4b5f0040dec27ffe04e to your computer and use it in GitHub Desktop.
Batch script for git auto commit
@echo off
ECHO Enter commit statement:
SET /p input=""
GOTO check
:check
IF "%input%" == "" (
ECHO Input is empty
GOTO exit
) ELSE (
GOTO commit
)
:commit
git.exe add .
git.exe commit -m "%input%"
git.exe push
ECHO Successfully Commited
:exit
PAUSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment