Last active
January 23, 2018 16:20
-
-
Save stefanDeveloper/41e2aaeb67d3a4b5f0040dec27ffe04e to your computer and use it in GitHub Desktop.
Batch script for git auto commit
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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