Git仓库迁移,包括所有的分支、标签、日志

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jingcheng345413/article/details/82759329

仅三行命令即可完成:

git clone --bare http://域名/分组/仓库名称.git

cd 仓库名称.git

git push --mirror http://新域名/新分组/新仓库名称.git

猜你喜欢

转载自blog.csdn.net/jingcheng345413/article/details/82759329