Skip to content

Commit 201a777

Browse files
committed
.
1 parent 5fa548f commit 201a777

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

git-commit-push-submodule.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)