Uzuy/Uzuy X - Tool.bat
Phoenix afa9fd9713 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.
2024-09-07 20:20:45 +10:00

41 lines
1.0 KiB
Batchfile
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@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