GitHub to Huawei Software Development Cloud Detailed Tutorial

1. Copy the code base address of GitHub

First, open the Github webpage and find the address of the code repository to be migrated, as follows:

Click Clone or Download, the following interface will appear

Click Copy toclipboard

2. Download the GitHub code repository to the local

Open the https://desktop.github.com/ website, download the GitHub tool GitHub Desktop, and install it;

Click the GitHub Desktop icon on the desktop

Then click the icon Clone a Repository in the middle, as shown in the figure

Copy the content of the previous pasteboard to the URL, select a local storage location, and click Clone

The cloned code repository can be found at the selected local folder

3. Upload the downloaded code to the Huawei Software Development Cloud

Preliminary preparations: Configure the user name, password, and SSH public key (for details, please refer to the Huawei Software Development Cloud Usage Guide)

Open Git Bash (this article will use Git Bash as a tool for guidance), and push the local repository code to the remote Huawei Software Development Cloud code repository.

Use Git Bash to find the code repository downloaded to the local, use the cd command

You can use the git branch command to view how many branches currently exist (for verification)

Delete the previously associated GitHub remote repository with the command git remote rm origin

Then re-associate the Huawei software development cloud warehouse address git remote add origin warehouse address

After that, push each branch, use the command git push –u origin branch name

Go back to the Huawei Software Development Cloud code hosting interface to verify the upload result

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326516784&siteId=291194637