game_sync/update_public.bat

16 lines
283 B
Batchfile

@echo off
if exist "..\public" (
cd ..\public
git checkout main
git pull
xcopy ..\game\data .\data /s /e /y
xcopy ..\game\protocol .\protocol /s /e /y
xcopy ..\game\xlsx .\xlsx /s /e /y
git add .
git commit -m "update"
git push
cd ..
)
pause