CodeArts Repo & Git

☁️Can I access Github repositories with Huawei cloud?

Hatice Duyar Keskin
Huawei Developers
Published in
4 min readAug 20, 2024

--

Introduction

Hello Everyone!

Today I will tell you about how to access a public repository in the github environment or the repositories of our own account. The name of our Huawei Cloud solution is Codearts Repo.

Enjoyable reading 😊

First of all, let’s talk about what git technology is.

What is Git and Repository?

Git

Git is a distributed version control system that tracks versions of files. It is often used to control source code by programmers collaboratively developing software.

A Git repository is the .git/ folder inside a project. This repository tracks all changes made to files in your project, building a history over time. Meaning, if you delete the .git/ folder, then you delete your project’s history.

What is CodeArts Repo?

CodeArts Repo provides software developers with Git-based online code hosting services. It is a cloud code repository that supports security control, member and permission management, branch protection and merging, online editing, and statistics. The service aims to address cross-region collaboration, multi-branch concurrency, code version management, and security issues.

CodeArts Repo

1-Moving a Public Git Repository to Codearts Repo

Connect to Huawei cloud console, select the CodeArts Repo service, click the “Access Service” button.

CodeArts Home Page on Huwei Cloud Console

In the window that opens, click the “New Repository” button, select Import Type and click the “Next” button.

Creating Repo
Repo Type

Select the Import from option as Git and paste the Public git repository URL information into the “Source Repository URL” field and click the “Next” button.

Import Repository

Note: Public repository link used as an example: https://github.com/eloyzone/android-calculator

Observe that the “Repository Name” section is loaded automatically and click the “OK” button.

Observe that the Codearts Repo is the same as the Github Public repo.

Github Repository Content
CodeArts Repository Content

If you want, you can run this repo with CodeArts Build, enjoy the builds :)

2-Moving the repositories in our Github account to CodeArts Repo

Connect to Huawei cloud console, select the CodeArts Repo service, click the “Access Service” button.

CodeArts Home Page on Huwei Cloud Console

In the window that opens, click the “New Repository” button, select Import Type and click the “Next” button.

Creating Repo
Repo Type

Select the “Import From” option as Github and click the “Create” button to add your own Github account to the “By Endpoint Service” field.

Import Repository Type

Enter the “Service Endpoint Name” value and click the “Authorize and OK” button.

Create Service Endpoint

In the window that opens, enter your github account information, complete the verification process and establish the connection.

Sign in Github with Account Info

After the connection is established, click on the “Refresh” button and click on the drop-down menu in the “By Service endpoint” field and observe that the account service name is displayed. Click the “Next” button.

Select Github Service Point

Observe that all repositories in your account are displayed on the page that opens, select the repository you want to import and click the “Next” button.

Check All Github Repository

Enter the “Repository Name” value and click the “OK” button

Import Repository

Observe that the Repository in your Github account has been moved to the CodeArts Repo environment.

CodeArts Repo

Conclusion

I used Huawei Cloud services in my article. I recommend that you pay attention to billing when using these services. You can turn off the services after using them.

You can provide feedback with comments and actions. Thanks.

References

--

--