Former-commit-id: 288ee6a2a6
This commit is contained in:
Tour
2025-12-06 07:08:07 +01:00
parent 4375021a65
commit 49cb4f94aa

30
script/persist.sh Normal file
View File

@@ -0,0 +1,30 @@
@echo off
if "%1"=="" (
echo Error: Commit message is required
echo Usage: persist "Your commit message"
echo Example: persist "Fixed login bug"
exit /b 1
)
echo Adding all changes...
git add .
if errorlevel 1 (
echo Error: Failed to add changes
exit /b 1
)
echo Committing with message: "%*"
git commit -a -m "%*"
if errorlevel 1 (
echo Error: Failed to commit
exit /b 1
)
echo Pushing to remote...
git push
if errorlevel 1 (
echo Error: Failed to push
exit /b 1
)
echo All operations completed successfully!