1. Git仓库迁移
- 克隆旧仓库代码
git clone http://gitlab.example.com/lowcode/cctd-platform-datareport.git
2. 拉取全部远程分支到本地
cd cctd-platform-datareport/
git branch -a
for branch in `git branch -r | grep -v '\->'`; dogit branch --track "${branch#origin/}" "$branch"
done
3. 重设远程仓库origin地址,推送代码
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