08-27-周三_17-29-26
This commit is contained in:
25
push.bat
25
push.bat
@@ -1,25 +0,0 @@
|
||||
@echo off
|
||||
setlocal enabledelayedexpansion
|
||||
|
||||
rem <20><>ȡ<EFBFBD><C8A1>ǰ<EFBFBD><C7B0><EFBFBD>ں<EFBFBD>ʱ<EFBFBD><CAB1>
|
||||
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 ȥ<><C8A5>Сʱ<D0A1>Ŀո<C4BF>
|
||||
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
|
Reference in New Issue
Block a user