Git 从仓库 A 完整移动到仓库 B

本地式

首先 download 代码

1
git clone --bare 仓库A地址

然后 push 代码

1
git push --mirror 仓库B地址

效果

包括提交记录,版本记录等等…..新仓库都会有了