Windows下遍历所有GIT目录更新项目脚本
时间:2019-12-19 00:18:56
收藏:0
阅读:249
将下面代码保存为.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
原文:https://www.cnblogs.com/msvc/p/12064147.html
评论(0)