将下面代码保存为.bat文件
@echo off
set cdir=%~dp0
for /f "delims=" %%i in ('dir /ad/b/s "%cdir%" ') do (
if "%%~nxi" equ ".git" (
cd %%~dpi
git pull
)
)
pause
2022-08-09 11:43:05
将下面代码保存为.bat文件
@echo off
set cdir=%~dp0
for /f "delims=" %%i in ('dir /ad/b/s "%cdir%" ') do (
if "%%~nxi" equ ".git" (
cd %%~dpi
git pull
)
)
pause