Updated on 2023-05-06 GMT+08:00

Uploading and Downloading Code

  1. Ensure that the network connection is up and running.

    Enter telnet code*************.com 22 on the client.

    If command not found is displayed, the network cannot access CodeHub.

  2. Check if the client is trusted by CodeHub.

    If the system prompts you to enter a password when you pull or push code, check whether the public key has been added to CodeHub.

    If the public key has been added, run $ ssh -vT git@code*************.com to check whether the trust relationship is established.

    If the following information is displayed, the trust relationship is established.

  3. If the fingerprints of both parties are changed after the trust relationship is established, a public key authentication error is reported during commit attempts. In this case, perform the following operations:
    1. Delete the lines related to code*************.com from the ~/.ssh/known_hosts file.
    2. Enter push, pull, or ssh -T git@code*************.com.
    3. Enter yes when asked whether to trust the public key of the server.
  4. The code download is successful. If the target branch of the push is protected, the code fails to be pushed.

  5. Contact the repository administrator to unprotect the branch. The code can be pushed after the protection is canceled.