chore(scripts): add batch script for remote update and force push

Added a batch script that automates the following tasks:
- Removes old Git remote and adds a new one.
- Pushes all branches with force.
- Provides an option to push tags with user confirmation.
This commit is contained in:
Phoenix 2024-09-07 20:20:45 +10:00
parent 31053f81e2
commit afa9fd9713

41
Uzuy X - Tool.bat Normal file
View File

@ -0,0 +1,41 @@
@echo off
title Uzuy X - Tool
REM Phoenix ASCII Logo
echo.
echo  /\
echo  //\\
echo  // \\
echo  // \\
echo  // \\
echo  //________\\
echo  \\ /
echo  \\ /
echo  \\ /
echo  \\ /
echo  \/
echo Proceed with warning!
timeout /t 5
REM Remove old remote and add new remote
git remote remove origin
git remote add origin https://git.uzuy-edge.org/Uzuy-Edge/Uzuy.git
REM Show current remotes
git remote -v
REM Push all branches
echo Proceeding with force push
git push --force --all origin
REM Ask user if they want to push tags
set /p includeTags="Do you want to push tags? (y/n): "
if /i "%includeTags%"=="y" (
git push --force --tags origin
echo Tags pushed.
) else (
echo Tags not pushed.
)
pause