@echo off
chcp 65001
echo %date% %time% "开始git pull">>D:\dev\gitpull.log
call:gitpull D:\dev\project
echo "git pull 完成">>D:\dev\gitpull.log
timeout /nobreak /t 10
goto:End
:gitpull
set file=.gitignore
if exist %~1%file% (
git -C %~1 pull >>D:\dev\gitpull.log
) else (
for /d %%i in (%~1\*) do (
if exist %%i\%file% (
git -C %%i pull >>D:\dev\gitpull.log
)
)
)
goto:eof
08-20
520
09-19
09-24
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交