1. Git仓库迁移
- 克隆旧仓库代码
bash
git clone http://gitlab.example.com/lowcode/cctd-platform-datareport.git

- 拉取全部远程分支到本地
bash
cd cctd-platform-datareport/
git branch -a
for branch in `git branch -r | grep -v '\->'`; do
git branch --track "${branch#origin/}" "$branch"
done

- 重设远程仓库origin地址,推送代码
bash
git remote rename origin upstream
git remote add origin http://172.16.92.64:3000/shiys/platform-datareport.git
git push -u origin --all
git push -u origin --tags
git remote rm upstream
