使用现有的已迁移存储库的TAG将Bitbucket迁移到Github [英] Bitbucket migration to Github with TAG's for an existing migrated repo

查看:146
本文介绍了使用现有的已迁移存储库的TAG将Bitbucket迁移到Github的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任务是将现有的Bitbucket存储库迁移到Github.迁移已经进行,但是没有任何标签. Bitbucket存储库有很多标签,但是Github存储库中缺少这些标签.我可以采取任何补救措施吗?

The task is to migrate an existing Bitbucket repo to Github. The migration has taken place but without ANY tags. The Bitbucket repo has many many tags but these are missing from the Github repo. Any steps that I can follow to remedy this?

非常感谢您的答复.

推荐答案

以下是使用历史记录(所有分支机构/标签/历史记录)迁移Git Repo所需遵循的步骤

Here are the steps you need to follow to migrate Git Repo with History(All branches/tags/History)

  1. git clone --mirror ssh://source_git_url.git
  2. cd文件夹>> cd到克隆的文件夹
  3. 使用相同的git名称在Target GIT中创建新的仓库(最好避免混淆)
  4. git远程添加bitbucket https://userid@bitbucket_host.target_url/target_git_url.git
  5. git push https://userid@bitbucket_host.target_url/target_git_url.git -镜子
  6. 完成后,请验证目标git repo
  1. git clone --mirror ssh://source_git_url.git
  2. cd folder >> cd to cloned folder
  3. create the new repo in Target GIT with same git name(preferred to avoid confusion)
  4. git remote add bitbucket https://userid@bitbucket_host.target_url/target_git_url.git
  5. git push https://userid@bitbucket_host.target_url/target_git_url.git --mirror
  6. Done please verify the target git repo

注意:在第4点上,如果目标是bitbucket,则我使用bitbucket,否则源将起作用.

Note: On point 4, i used bitbucket if target is bitbucket otherwise origin will work.

这篇关于使用现有的已迁移存储库的TAG将Bitbucket迁移到Github的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆