Fe-interview: [软技能] 第346天 如何迁移仓库,同时保留原有的提交记录和分支?

Created on 26 Mar 2020  ·  4Comments  ·  Source: haizlin/fe-interview

第346天 如何迁移仓库,同时保留原有的提交记录和分支?

作者:xiangshuo1992

我也要出题

软技能

Most helpful comment

git clone --bare 旧库地址
git push --mirror 新库地址

All 4 comments

Fork是不是就可以 0.0

萌新来答题啦
git clone --bare 旧库地址
git push --mirror 新库地址

.git/config修改远程地址, git push --mirror

参考楼上的回答 测试一下可以哦
git clone --bare 仓库地址
cd 到克隆下来的仓库
git push --mirror 新建的仓库地址
Was this page helpful?
0 / 5 - 0 ratings