From f2d1ff2c633da1c1436bf68176fa24bd8497bee1 Mon Sep 17 00:00:00 2001 From: aaronxu <3448711340@qq.com> Date: Wed, 27 Aug 2025 14:56:45 +0800 Subject: [PATCH] =?UTF-8?q?08-27-=E5=91=A8=E4=B8=89=5F14-56-45?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push.bat | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 push.bat diff --git a/push.bat b/push.bat new file mode 100644 index 0000000..16629b7 --- /dev/null +++ b/push.bat @@ -0,0 +1,26 @@ +@echo off +setlocal enabledelayedexpansion + +rem 获取当前日期和时间 +for /f "tokens=1-4 delims=/-. " %%i in ("%date%") do ( + set yyyy=%%i + set mm=%%j + set dd=%%k +) + +set hh=%time:~0,2% +set nn=%time:~3,2% +set ss=%time:~6,2% + +rem 去掉小时的空格 +if "%hh:~0,1%"==" " set hh=0%hh:~1,1% + +set commitmsg=%yyyy%-%mm%-%dd%_%hh%-%nn%-%ss% + +git config --global core.autocrlf input + +git add . +git commit -m "%commitmsg%" +git push + +endlocal \ No newline at end of file