关于gitlab项目工程完整迁移

工程源:os / ALPS-MP-N0.MP1-V1.0.2_6737M_65_N

备份新工程: os / OS_gerrit_ALPS-MP-N0.MP1-V1.0.2_xxx_65_N

1、在gitlab上面新建os / OS_gerrit_ALPS-MP-N0.MP1-V1.0.2_xxx_65_N工程

2、在本地 git clone --bare  os / ALPS-MP-N0.MP1-V1.0.2_6737M_65_N,这样就可以得到包括git log一模一样的的工程

3、通过git push --mirror os / OS_gerrit_ALPS-MP-N0.MP1-V1.0.2_xxx_65_N  指向新的工程,并push回去,然后就可以得到备份跟新建效果

原文地址:https://www.cnblogs.com/to-be-rich/p/7243592.html