# git_migration **Repository Path**: LiuBei/git_migration ## Basic Information - **Project Name**: git_migration - **Description**: git迁移脚本 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-04-04 - **Last Updated**: 2021-12-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## git管理的代码从一个仓库迁移到另一个仓库的shell脚本 - shell脚本 - 迁移git仓库包括所有代码、分支 ### 用法 - 用法:(1)参数一:来源git仓库地址地址 (2)参数二:目标git仓库地址 - 如从github的ZB_18558992仓库把所有的代码和分支迁移到开源中国zb_18558992仓库时命令为: ```shell sh git_migration.sh https://github.com/JavaProgrammerLB/ZB_18558992 git@gitee.com:LiuBei/zb_18558992.git ``` ### 效果 【目标仓库在迁移前为空仓库】 ![目标仓库在迁移前为空仓库](https://images.gitee.com/uploads/images/2021/0404/120606_75d277a5_105327.png "Snip20210404_2.png") 【shell脚本执行过程】 ![shell脚本执行过程](https://images.gitee.com/uploads/images/2021/0404/120647_efba8f3a_105327.png "Snip20210404_3.png") 【shell脚本执行后完成仓库迁移】 ![shell脚本执行后完成仓库迁移](https://images.gitee.com/uploads/images/2021/0404/120727_90160eb7_105327.png "Snip20210404_5.png")