Skip to content

Instantly share code, notes, and snippets.

@Druvo
Forked from dehghani-mehdi/git-commit.bat
Created May 2, 2020 22:42
Show Gist options
  • Select an option

  • Save Druvo/d3fa80579dddf8b6dfa5ad3ef320cce4 to your computer and use it in GitHub Desktop.

Select an option

Save Druvo/d3fa80579dddf8b6dfa5ad3ef320cce4 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment