mirror of
https://github.com/oneclickvirt/ecs.git
synced 2025-12-24 12:37:53 +08:00
21 lines
326 B
Batchfile
21 lines
326 B
Batchfile
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
set repo_path=C:\Users\spiritlhl\Documents\GoWorks\ecs
|
|
|
|
git add -A
|
|
git commit -am"update"
|
|
|
|
:push
|
|
cd %repo_path%
|
|
git push -f origin master
|
|
if errorlevel 1 (
|
|
echo Push failed. Retrying in 3 seconds...
|
|
timeout /nobreak /t 3 >nul
|
|
goto push
|
|
)
|
|
|
|
echo Push successful.
|
|
|
|
endlocal
|