Last active
May 2, 2020 22:42
-
-
Save dehghani-mehdi/015468a9481b0a5cb793946f4d16092a to your computer and use it in GitHub Desktop.
Commit on GitHub/GitLab using batch file (.bat file)
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 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.