Created
April 30, 2018 02:15
-
-
Save jtrent238/47c0832e8017b3ff1589def2ae271648 to your computer and use it in GitHub Desktop.
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 | |
cls | |
echo Enter Git Repo name: | |
SET /p git_name= | |
echo Enter Comment for the Push (eg. Version number) NOTE: if nothing inserted will assign random one | |
SET /p git_comment= | |
cls | |
echo Updating %git_name%! | |
cd %git_name% | |
git add * | |
if %git_comment% == "" ( | |
echo no comment entered using a random one | |
goto no_comment | |
) else ( | |
echo comment entered: %git_comment% | |
goto comment | |
) | |
:comment | |
git commit -m %git_comment% | |
goto end | |
:no_comment | |
git commit -m "Commit %random%" | |
goto end | |
:end | |
git push | |
echo Done! | |
pause>nul |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment