Exploring Huawei Cloud CodeHub: A Guide to Features and Migration from GitHub

Enes Kocaman
Huawei Developers
Published in
5 min readMay 5, 2023

--

Huawei Cloud — CodeHub Service

Git-based version control tools like GitHub and GitLab have become essential resources for developers, providing a platform for managing code repositories, collaborating on code with other team members, and tracking issues and bugs.

Huawei Cloud CodeHub is a powerful source code management platform that builds on the standard Git platform, providing a range of additional features and tools to help developers streamline their development workflows. With the existing repository migration feature, developers can easily migrate their existing repositories from GitHub to CodeHub, providing a seamless transition and allowing them to take advantage of CodeHub’s powerful features. In this article, we will explore the features of CodeHub in depth and discuss how it can help developers improve their productivity and streamline their development workflows, with a specific focus on the migration process from GitHub to CodeHub.

Comparison between CodeHub and GitHub

When it comes to source code management tools, Huawei Cloud CodeHub service and GitHub are two popular options that developers can choose from. While both platforms share some similarities, there are also some key differences in terms of their features, integrations, and focus that make them better suited for different use cases and user groups. Let’s take a closer look at the advantages and disadvantages of each platform to help you decide which one might be the right fit for your needs.

Huawei CodeHub service:

  • Integrated with Huawei Cloud services(CodeArts)
  • Advanced security features
  • Powerful collaboration features
  • Integrated CI/CD pipeline
  • Limited community and ecosystem
  • Limited third-party integrations

GitHub:

  • Large and active community of developers and open-source projects
  • Extensive third-party integrations
  • Strong support for open-source development
  • Limited integration with other cloud services
  • Security concerns related to ownership by Microsoft
  • Limited support for enterprise-level authentication and authorization mechanisms

In general, CodeHub provides a more tightly integrated platform with Huawei Cloud services, advanced security features, and a strong focus on enterprise-level security and collaboration. On the other hand, GitHub has a larger and more active community of developers and open-source projects, extensive third-party integrations, and strong support for open-source development. Ultimately, the choice between these two platforms will depend on the specific needs and priorities of individual developers and organizations.

Migrating a Repository from GitHub to CodeHub

To import your existing repository from GitHub to Huawei Cloud CodeHub service, you need to first access CodeHub service under your Cloud Developer account. Once you’re logged in, click on the arrow located on the right side of the button and select “Import Repository” from the dropdown menu. Depending on the visibility settings of your repository, you can follow one of the options explained below to complete the import process.

Figure 1.1. CodeHub — Import Repository
  • Private Repository

If you have an existing private repository on GitHub and want to migrate it to Huawei Cloud CodeHub service, there is a simple process to follow. First, you need to create a Personal Access Token under your GitHub account, which will be used as a parameter when importing your existing repository onto CodeHub. By following this process, you can seamlessly move your repository and continue your development work using the advanced features and integrations provided by CodeHub.

  1. Log in to your GitHub account and click on your avatar located at the top right corner of the page.
  2. From the dropdown menu, select “Settings”.
  3. In the left-hand navigation menu, click on “Developer settings” located at the bottom of the page.
  4. Click on “Personal access tokens” from the submenu.
  5. On the Personal access tokens page, click on the “Generate new token” button.
  6. Give a descriptive name to your token in the “Note” field.
  7. Choose the appropriate scopes that you want to grant the token. The scopes define what the token can access on your GitHub account.
  8. Select the expiration date for the token or choose to make it never expire.
  9. Finally, click on the “Generate token” button.
Figure 2.1. GitHub— Creating Access Token

Once you’ve generated your token, you can use it as a parameter when importing your existing private GitHub repository into Huawei Cloud CodeHub service as shown below.

https://<PAT>@github.com/<github username>/<repository name>.git

Figure 2.2. GitHub — Import Repository URL
  • Public Repository

If your GitHub repository is public, you can import it into Huawei Cloud CodeHub service without using any access token. Simply copy and paste the URL of your repository into the import wizard, and then click on the “Next” button to proceed.

In conclusion, the use of version control tools has become essential for software development, and platforms like GitHub and GitLab have played a significant role in facilitating collaboration, managing code repositories, and tracking issues and bugs. Huawei Cloud CodeHub is a powerful source code management platform that provides a range of additional features and tools to help developers streamline their development workflows. This article has explored the features of CodeHub and discussed how it can help developers improve their productivity and streamline their development workflows, with a specific focus on the migration process from GitHub to CodeHub. While both CodeHub and GitHub offer unique advantages and disadvantages, the choice between these two platforms will ultimately depend on the specific needs and priorities of individual developers and organizations. With the existing repository migration feature, developers can easily migrate their existing repositories from GitHub to CodeHub, providing a seamless transition and allowing them to take advantage of CodeHub’s powerful features.

References

--

--