1
0
mirror of synced 2025-12-14 17:18:10 +08:00
Files
SnowFlake-IdGenerator/auto_commit.bat
zhouzj cbb5893ee2 init
2021-03-11 15:50:16 +08:00

38 lines
482 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
set result=[OK]
set tag=[OK]
set msg="auto commit"
echo --------------------------------------------------------
if not "%1" == "" (
SET msg=%1
)
git add -A
git commit -am %msg%
git push
if "%errorlevel%"=="1" goto ERR
goto END
:ERR
set result=[error]
set tag=[error]
:END
echo %tag% result: %result%
echo ========================================================
if "%tag%"=="×" (
SET __ERROR__=true
@pause
)
:QUIT