coding/gitee批量迁移代码到gitlab的批处理文件
2019-11-26 本文已影响0人
回眸淡然笑
@echo off
cd wdjy
setlocal enabledelayedexpansion
for %%N in (项目1,项目2,项目3) do (
git clone --mirror https://e.coding.net/iwdjy/%%N.git
cd %%N.git
git remote set-url --push origin git@gitlab_root:root/%%N.git
git push --mirror
cd ../
)
pause