赞
踩
@echo off
:: 当前目录
set curdir=%cd%
:: 输出当前目录中的子目录名字不带路径
for /f %%i in ('dir /b /ad "%curdir%"') do (
cd %%i
IF EXIST .git (
echo %%i
git pull
echo.
)
cd ..
)
msg %username% /time:10 'git pull success'
@echo off :: 当前目录 set curdir=%cd% :: 输出当前目录中的子目录名字不带路径 :: 若是 多个目录,可将curdir修改为目录名,以空格分割 for /f %%i in ('dir /b /ad "%curdir%"') do ( cd %%i IF EXIST .git ( echo %%i git push echo. ) cd .. ) pause
@echo off CHCP 65001 :: 当前目录 set curdir=%cd% set t=%time:~0,8% set mt=%t: =0% echo mt = %mt% set this_date=%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%%time:~6,2% ECHO %this_date% echo. set tag_name=%this_date%.RELEASE ECHO %tag_name% echo. echo 'create tag' %tag_name% ::prod git tag -a %tag_name% -m "%tag_name%" git pull git push git push --tags echo. echo success!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。