Updated .gitattributes and .gitignore, added cleanup scripts

This commit is contained in:
raccoon
2025-01-09 00:38:27 +05:00
parent a66355a13a
commit e442004385
4 changed files with 112 additions and 15 deletions

26
repo-cleanup.cmd Normal file
View File

@@ -0,0 +1,26 @@
@ECHO OFF
TITLE Clean up Unity Project repo
SETLOCAL EnableDelayedExpansion
CALL :cleanup --dry-run || GOTO die
CHOICE /M "Execute"
IF !ERRORLEVEL! NEQ 1 (
ECHO Aborting cleanup...
) ELSE (
CALL :cleanup || GOTO die
ECHO Done.
)
:end
PAUSE
EXIT /B 0
:die
PAUSE
EXIT /B %ERRORLEVEL%
:cleanup
git clean -dfX %* "%~dp0." || EXIT /B
EXIT /B 0