We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fa548f commit 201a777Copy full SHA for 201a777
1 file changed
git-commit-push-submodule.bat
@@ -0,0 +1,20 @@
1
+@echo off
2
+
3
+echo Current folder: %cd%
4
5
+for /f "delims=" %%i in ('git status --porcelain') do set status=%%i
6
+if not defined status (
7
+ echo There are no changes to the repository.
8
+ pause
9
+ exit /b 0
10
+)
11
12
+set /p "commit_message=Enter the commit message: "
13
14
+git add --all
15
+git commit -m "%commit_message%"
16
+git push origin HEAD:main
17
18
+echo Git operations completed successfully.
19
+echo --------------------------------------
20
+pause
0 commit comments