1,在当前终端中,使用git clone --mirror克隆远程仓库到本地。
git clone --mirror <旧仓库URL>
2,进入刚刚克隆的仓库目录。
cd <旧仓库名>
3,推送到新的远程仓库地址。
git push --mirror <新仓库URL>
完成上述步骤后,旧仓库将被迁移到新的位置,包括所有的分支、标签和提交历史。

![]() |
关闭 Kdump 服务 ![]() |
![]() | |
[ 发布日期:1个月前 (01-08) ] [ 来自:本站原创 ] | [分类:其它运维与编程] |
发表评论 |
![]() |
PoweredBy R-Blog V1.00 © 2004-2025 WWW.RICKW.CN, Processed in second(s) , 7 queries 京ICP备17058477号-5 | ![]() |