We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3bd1270 commit 06e5ebcCopy full SHA for 06e5ebc
git-commit-push.bat
@@ -2,8 +2,8 @@
2
3
echo Current folder: %cd%
4
5
-git status --porcelain > nul
6
-if errorlevel 1 (
+for /f "delims=" %%i in ('git status --porcelain') do set status=%%i
+if not defined status (
7
echo There are no changes to the repository.
8
pause
9
exit /b 0
0 commit comments