mirror of
https://git.uzuy-edge.org/Uzuy-Edge/Uzuy
synced 2024-11-26 23:40:30 +00:00
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:
parent
31053f81e2
commit
afa9fd9713
41
Uzuy X - Tool.bat
Normal file
41
Uzuy X - Tool.bat
Normal file
@ -0,0 +1,41 @@
|
||||
@echo off
|
||||
title Uzuy X - Tool
|
||||
|
||||
REM Phoenix ASCII Logo
|
||||
echo.
|
||||
echo [37m /\[0m
|
||||
echo [37m //\\[0m
|
||||
echo [37m // \\[0m
|
||||
echo [37m // \\[0m
|
||||
echo [37m // \\[0m
|
||||
echo [37m //________\\[0m
|
||||
echo [37m \\ /[0m
|
||||
echo [37m \\ /[0m
|
||||
echo [37m \\ /[0m
|
||||
echo [37m \\ /[0m
|
||||
echo [37m \/[0m
|
||||
echo [31mP[33mr[32mo[36mc[34me[35me[37md[31m [33mw[32mi[36mt[34mh[35m [31m[33mw[32ma[36rr[34mn[35mi[37mn[31mg![0m
|
||||
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 [37mProceeding with force push[0m
|
||||
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
|
Loading…
Reference in New Issue
Block a user