简介:
公司项目采取微服务方式,导致开发时要拉取多个服务代码,一个一个的拉取太麻烦了,
于是,有了 “光” ^_^
原理:
将拉取地址写在一个文本里,利用批处理挨个读取,进行clone
需要文件两个,如图:
abc.txt(里面放需要拉取的地址)
http://gitee.**zuul.git
http://gitee.**security.git
http://gitee.**commons.git
http://gitee.**parent.git
pull_All_gitlabCode.bat(循环读取abc.txt,进行clone,此文件不需要更改)
::for loop test
@echo off
for /f %%c in (abc.txt) do git clone %%c
pause
以上文件都准备好,双击pull_All_gitlabCode.bat脚本,等待完成即可
分享是一种美德^_^