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

Cloning the GitHub Repository to the Local PC

Cloning the Code Repository to the Local PC

  1. After creating the develop branch, click the code repository name url-link-extractor in the upper left corner to go to the homepage of the repository.
  2. Click Code and copy the HTTPS address of the code repository.

    Figure 1 Copying the HTTPS address

  3. Open the local Git Bash client and run the command below to clone the code repository to the local PC. During the command execution, complete authentication in the automatically displayed browser window in a timely manner.

    • If you are on the Internet, run the following command:
      git clone -b develop https://github.com/GitHub username/Repository name.git
    • If you are on the intranet, run the following command:
      git clone -b develop \ -c http.proxy="http://<proxy_user>:<proxy_password>@<proxy_host>:<proxy_port>" \ -c https.proxy="http://<proxy_user>:<proxy_password>@<proxy_host>:<proxy_port>" \ https://github.com/GitHub username/Repository name.git

      In the preceding command, <proxy_user>:<proxy_password> indicates the user name and password used for proxy login, <proxy_host> indicates the domain name of the proxy server, <proxy_port> indicates the listening port of the proxy service, and https://github.com/GitHub username/Repository name.git needs to be replaced with the cloned HTTPS address of the code repository.

      If your password contains special characters such as @ and %, escape them using URL encoding before entering the password. Otherwise, the proxy configuration will be invalid.

      For example, if your password is Admin%@test, the password after URL encoding is Admin%25%40test. For details about URL encoding for common special characters, see Table 1.

      Table 1 URL encoding for common characters

      Character

      URL Encoded Value

      @

      %40

      %

      %25

      &

      %26

      =

      %3D

      +

      %2B

      Space

      %20 or /

      #

      %23

      /

      %2F

      If the following information is displayed, the code repository has been successfully cloned to the local PC:
      Cloning into 'url-link-extractor'...
      remote: Enumerating objects: 8, done.
      remote: Counting objects: 100% (8/8), done.
      remote: Compressing objects: 100% (5/5), done.
      remote: Total 8 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
      Receiving objects: 100% (8/8), done.

  4. After cloning the code repository url-link-extractor to the local PC, go to the code repository and run the following command on the Git Bash client to pull the latest code:

    git pull origin develop

    If the following information is displayed, the latest code of the remote develop branch has been pulled. The local code is the same as the remote code, and no update is required. If a conflict occurs, resolve the code conflict first.

    From https://github.com/username/url-link-extractor
     * branch            develop    -> FETCH_HEAD
    Already up to date.