下载多个 GIT 仓库代码的脚本

@echo off

echo.
echo %date:~0,4%-%date:~5,2%-%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2% 获取代码中...

set Common=XXXX
set Designer=XXXX
echo.

echo %date:~0,4%-%date:~5,2%-%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2%  配置仓库(6/9) = %Designer%
if exist %Designer% (
 cd %Designer%
 git checkout 分支名
 git pull
 cd ..
)
echo.

@ping -n 2 127.1>nul
echo.
echo %date:~0,4%-%date:~5,2%-%date:~8,2% %time:~0,2%:%time:~3,2%:%time:~6,2%  git拉取代码完成。
echo.

  

posted @ 2021-08-24 10:49  wild-coffee  阅读(152)  评论(0编辑  收藏  举报