-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpush-to-github.bat
More file actions
41 lines (36 loc) · 1.11 KB
/
push-to-github.bat
File metadata and controls
41 lines (36 loc) · 1.11 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
@echo off
echo ========================================
echo GameLAN VPN - Push to GitHub v0.1.0
echo ========================================
echo [1/4] Setting remote URL...
git remote set-url origin https://github.com/yosasasutsut/GameLANVPN.git
if %errorlevel% neq 0 (
echo Adding remote origin...
git remote add origin https://github.com/yosasasutsut/GameLANVPN.git
)
echo [2/4] Pushing main branch...
git push -u origin main
if %errorlevel% neq 0 (
echo Push failed! Check if repository exists and you have access.
pause
exit /b 1
)
echo [3/4] Pushing version tag...
git push origin v0.1.0
if %errorlevel% neq 0 (
echo Tag push failed!
pause
exit /b 1
)
echo [4/4] Opening repository...
start https://github.com/yosasasutsut/GameLANVPN
echo.
echo ========================================
echo SUCCESS! Repository pushed to GitHub
echo ========================================
echo.
echo Repository: https://github.com/yosasasutsut/GameLANVPN
echo Actions: https://github.com/yosasasutsut/GameLANVPN/actions
echo Releases: https://github.com/yosasasutsut/GameLANVPN/releases
echo.
pause