Added convenience shell scripts

This commit is contained in:
raccoon
2026-03-02 12:06:35 +05:00
parent c9eec43b74
commit cd4cd13b54
6 changed files with 165 additions and 0 deletions

25
repo-cleanup.cmd Normal file
View File

@@ -0,0 +1,25 @@
@ECHO OFF
TITLE Clean up Unity Project repo
SETLOCAL EnableDelayedExpansion
CD "%~dp0"
git rev-parse --is-inside-work-tree >NUL || GOTO die
git clean -dfX --dry-run "%~dp0." || GOTO die
ECHO.
CHOICE /M "Execute"
IF !ERRORLEVEL! NEQ 1 (
ECHO Aborting cleanup...
) ELSE (
git clean -dfX "%~dp0." || GOTO die
ECHO Done.
)
:end
PAUSE
EXIT /B 0
:die
PAUSE
EXIT /B %ERRORLEVEL%