-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMANUAL_PUSH.bat
More file actions
33 lines (30 loc) · 838 Bytes
/
Copy pathMANUAL_PUSH.bat
File metadata and controls
33 lines (30 loc) · 838 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
@echo off
cd /d "%~dp0"
echo ==========================================================
echo NOVA HOMUNCULUS - GITHUB SYNC
echo ==========================================================
echo.
echo [1] Checking Git Status...
git status
echo.
echo [2] Forcing Push to Remote...
echo.
echo [IMPORTANT] If a GitHub Login Window pops up, please sign in!
echo.
git push -u origin main
if %ERRORLEVEL% NEQ 0 (
echo.
echo [ERROR] Normal push failed. Trying FORCE push...
git push -f origin main
)
if %ERRORLEVEL% NEQ 0 (
echo.
echo [CRITICAL ERROR] Still failed! Use these commands manually:
echo git remote set-url origin https://github.com/VaradScript/nova-homunculus.git
echo git push -f origin main
echo.
) else (
echo.
echo [SUCCESS] Your code is now live on GitHub!
)
pause