第1步:
git clone -- bare xxxx1
xxx1:为原来git地址,就是你要迁移的地址
这一句主要是把代码基础包下载下来
第2步
第一步结束后,回你生成xxx2.git
cd xxx2.git
第3步
git push --mirrir xxxx3地址
xxx3:是你要往哪迁移的git地址
附:截屏
--mirrorSet up a mirror of the source repository. This implies --bare. Compared to --bare, --mirrornot only maps local branches of the source to local branches of the target, it maps all refs (including remote branches, notes etc.) and sets up a refspec configuration such that all these refs are overwritten by a git remote update in the target repository.
举报/反馈

海杰同学0401

133获赞 12粉丝
汗水换来的是永恒的成功
关注
0
0
收藏
分享