-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub_sync.bat
More file actions
31 lines (26 loc) · 784 Bytes
/
Copy pathgithub_sync.bat
File metadata and controls
31 lines (26 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@echo off
echo ========================================
echo French Revolution Game Sync Tool
echo ========================================
echo.
:: Check if git is installed
where git >nul 2>nul
if %errorlevel% neq 0 (
echo [ERROR] Git is not installed or not in your PATH.
echo Please install Git from https://git-scm.com/ and try again.
pause
exit /b
)
echo [1/3] Adding changes...
git add .
echo [2/3] Committing...
set /p commit_msg="Enter commit message (default: Update game content): "
if "%commit_msg%"=="" set commit_msg="Update game content"
git commit -m "%commit_msg%"
echo [3/3] Pushing to GitHub...
git push origin main
echo.
echo ========================================
echo Sync Complete!
echo ========================================
pause