From fedfe15b64fec3d53cf3a3846c2bd69e224e4b4a Mon Sep 17 00:00:00 2001 From: dynastxu <151742029+ETOofficial@users.noreply.github.com> Date: Thu, 13 Nov 2025 13:03:06 +0800 Subject: [PATCH] =?UTF-8?q?feat(script):=20=E6=B7=BB=E5=8A=A0=20Git=20?= =?UTF-8?q?=E6=B8=85=E7=90=86=E8=84=9A=E6=9C=AC=E4=BB=A5=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B8=85=E7=90=86=E6=9C=AA=E8=B7=9F=E8=B8=AA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git_clean.bat | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 git_clean.bat diff --git a/git_clean.bat b/git_clean.bat new file mode 100644 index 0000000..f02956d --- /dev/null +++ b/git_clean.bat @@ -0,0 +1,22 @@ +@echo off +chcp 65001 >nul +echo 正在检查将要清理的文件和文件夹... +git clean -fd -n + +set /p confirm=是否确认清理这些文件?(y/N): +if /i "%confirm%" neq "y" ( + echo 操作已取消 + pause + exit /b +) + +echo 正在执行清理操作... +git clean -fd + +if %errorlevel% equ 0 ( + echo 清理完成! +) else ( + echo 清理过程中出现错误,错误代码: %errorlevel% +) + +pause \ No newline at end of file