miduo_client/一键提交到git.bat

22 lines
448 B
Batchfile

@echo off
set words=%*
:: 获取当前脚本的路径
cd /d %~dp0
:: 自动提交
git init
for %%i in (%words%) do (
git add %%i*
)
git commit -m "bat Resource Commit:%date:~0,10%,%time:~0,8%"
:: git commit -m "%commitMessage%"
git push origin master
@echo 已经完成,
SET daoTime=60
:dao
set /a daoTime=daoTime-1
ping -n 2 -w 500 127.1>nul
cls
echo 上传Git完成 ,倒计时退出: %daoTime%
if %daoTime%==0 (exit) else (goto dao)