# Git 仓库迁移 - 完整的迁移代码和提交信息等. - 先把Git仓库信息clone 到本地,然后push 到新的Git 仓库 ## 克隆git 信息到本地 ```shell git clone --bare 原来的git地址 ``` ## push Git到新仓库 - clone 下来会出现一个同名的xxx.git 文件夹 ```shell cd xxx.git git push --mirror 新的git地址 ```
阅读量:1
点赞量:1