☁️Can I access Github repositories with Huawei cloud?
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 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.
1-Moving a Public Git Repository to Codearts Repo
Connect to Huawei cloud console, select the CodeArts Repo service, click the “Access Service” button.
In the window that opens, click the “New Repository” button, select Import Type and click the “Next” button.
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.
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.
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.
In the window that opens, click the “New Repository” button, select Import Type and click the “Next” button.
Select the “Import From” option as Github and click the “Create” button to add your own Github account to the “By Endpoint Service” field.
Enter the “Service Endpoint Name” value and click the “Authorize and OK” button.
In the window that opens, enter your github account information, complete the verification process and establish the connection.
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.
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.
Enter the “Repository Name” value and click the “OK” button
Observe that the Repository in your Github account has been moved to the CodeArts Repo environment.
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.