远程项目迁移操作

项目镜像:一般包含了项目的完整信息(提交日志、分支等)
克隆项目镜像(一般用于迁移仓库前的备份):

git clone --mirror git@仓库地址/项目名.git

把仓库镜像推送到新的远程仓库地址:

git push --mirror git@仓库地址/项目名.git

把本地仓库重定向到远程仓库:

git remote set-url origin git@仓库地址/项目名.git

你可能感兴趣的:(远程项目迁移操作)