-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub_sync.bat
More file actions
35 lines (29 loc) · 879 Bytes
/
Copy pathgithub_sync.bat
File metadata and controls
35 lines (29 loc) · 879 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
32
33
34
35
@echo off
echo ========================================
echo Melaka Project GitHub 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/4] Initializing Git...
git init
echo [2/4] Adding files...
git add .
echo [3/4] Committing...
git commit -m "Sync Melaka Project with latest updates and images"
echo [4/4] Connecting to GitHub and Pushing...
git branch -M main
git remote remove origin >nul 2>nul
git remote add origin https://github.com/chewyenhan/Melaka_Project.git
git push -u origin main --force
echo.
echo ========================================
echo Sync Complete!
echo ========================================
pause