Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jtrent238/47c0832e8017b3ff1589def2ae271648 to your computer and use it in GitHub Desktop.
Save jtrent238/47c0832e8017b3ff1589def2ae271648 to your computer and use it in GitHub Desktop.
@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