Last active
May 2, 2020 22:42
Star
You must be signed in to star a gist
Commit on GitHub/GitLab using batch file (.bat file)
This file contains 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 Commit on GitHub/GitLab | |
echo. | |
set /p comment="Enter comment: " | |
git.exe add . | |
git.exe commit -m "%comment%" | |
git.exe push | |
echo. | |
echo All done :) | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Save the file, simply double-click on file, enter commit comment and press
Enter
, that's it.p.s: You need to install Git for Windows first.