-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupdate_github.bat
More file actions
44 lines (37 loc) · 1.05 KB
/
Copy pathupdate_github.bat
File metadata and controls
44 lines (37 loc) · 1.05 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
REM Github update script
echo.
echo Updating GitHub repository...
echo.
REM Check if git is installed
where git >nul 2>&1
if %ERRORLEVEL% NEQ 0 (
echo ERROR: Git is not installed or not in your PATH.
echo Please install Git from https://git-scm.com/downloads
pause
exit /b 1
)
REM Add all files
echo Adding files to git...
git add .
REM Commit changes
set /p commit_msg="Enter commit message (or press Enter for default): "
if "%commit_msg%"=="" set commit_msg="Updated project with WebSocket fixes and improved documentation"
echo.
echo Committing with message: %commit_msg%
git commit -m "%commit_msg%"
REM Push to remote
echo.
echo Pushing to GitHub...
git push
if %ERRORLEVEL% NEQ 0 (
echo.
echo ERROR: Failed to push to GitHub. Check your credentials and connection.
echo You might need to set up your GitHub credentials first with:
echo git config --global user.email "your-email@example.com"
echo git config --global user.name "Your Name"
) else (
echo.
echo Successfully updated GitHub repository!
)
pause