更新仓库下的多个 git项目的代码
:: Author: liu
:: Date: 2021-01-07
:: Version v1.2
@echo off
set bat_path=%~dp0
cd /d %bat_path%
for /f "tokens=*" %%i in ('dir /ad /b ') do (
cd %%i
git pull
cd ..
)
基于cmd命令循环文件夹名, 执行git pull命令
更新仓库下的多个 git项目的代码
:: Author: liu
:: Date: 2021-01-07
:: Version v1.2
@echo off
set bat_path=%~dp0
cd /d %bat_path%
for /f "tokens=*" %%i in ('dir /ad /b ') do (
cd %%i
git pull
cd ..
)
基于cmd命令循环文件夹名, 执行git pull命令