You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

auto_commit.bat 482 B

4 years ago
12345678910111213141516171819202122232425262728293031323334353637
  1. @echo off
  2. set result=[OK]
  3. set tag=[OK]
  4. set msg="auto commit"
  5. echo --------------------------------------------------------
  6. if not "%1" == "" (
  7. SET msg=%1
  8. )
  9. git add -A
  10. git commit -am %msg%
  11. git push
  12. if "%errorlevel%"=="1" goto ERR
  13. goto END
  14. :ERR
  15. set result=[error]
  16. set tag=[error]
  17. :END
  18. echo %tag% result: %result%
  19. echo ========================================================
  20. if "%tag%"=="×" (
  21. SET __ERROR__=true
  22. @pause
  23. )
  24. :QUIT

雪花算法中非常好用的数字ID生成器