Updated on 2026-08-04 GMT+08:00

Pushing Code to GitHub

  1. After the code development is complete, go to the local project code folder url-link-extractor, open the Git Bash client on the local PC, and run the following command to commit the modified files to the staging area:

    git add .

    If no command output is displayed, the modified files are successfully committed to the staging area.

  2. Run the following command to locally generate a code version snapshot marked as "Initial code import from demo" based on the file modifications in the staging area:

    git commit -m "Develop a web link and title batch crawling component that supports multi-URL prefix matching."
    Figure 1 Successful commit

  3. Run the following command to upload the local default master branch to the develop branch of the target code repository url-link-extractor:

    git push -u origin develop
    Figure 2 Code pushed successfully

  4. After the code is pushed successfully, log in to GitHub, go to the homepage of the code repository url-link-extractor, and click Actions on the top navigation bar. When the code is pushed from the local PC to the develop branch, the pipeline is automatically triggered to check whether the code is available.

    • A green icon indicates that the verification is successful, and a red icon indicates that the task is terminated due to an error.
    • If a task fails, rectify the fault by referring to GitHub-triggered CI Automatic Build Task Fails. If the fault persists, submit a service ticket to get help from Huawei Cloud customer service.
      Figure 3 Viewing Actions pipeline running records