git项目迁移至其它git仓库

#从原仓库克隆git文件
git clone --mirror http://gitlab.domin.com/images/oldProject.git
#进入目录
cd oldProject.git
#设置新的git仓库地址
git remote set-url --push origin https://gitee.com/images/newProject.git
#推送
git push --mirror

你可能感兴趣的:(Git,git,仓库迁移)