Skip to content

Instantly share code, notes, and snippets.

@dehghani-mehdi
Last active May 2, 2020 22:42
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dehghani-mehdi/015468a9481b0a5cb793946f4d16092a to your computer and use it in GitHub Desktop.
Commit on GitHub/GitLab using batch file (.bat file)
@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
@dehghani-mehdi
Copy link
Author

dehghani-mehdi commented Apr 12, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment