如何将代码从 google 云源存储库与现有版本一起移动到 github 企业

How to move code from google cloud source repositories to github enterprise along with existing versions

我们在 GCP 源代码库中有代码,想将其移动 GitHub Enterprise。有什么最简单的方法可以将代码从 google 云源存储库与现有发布版本一起移动到 GitHub 企业吗?

使用了以下步骤:

  1. git 远程设置-url 原点
  2. git push -u origin
  3. git push --tags(推送发布版本)