Updated on 2023-12-04 GMT+08:00

Uploading and Downloading Code

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

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

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

  2. Check if the client is trusted by CodeArts Repo.

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

    If the public key has been added, run $ ssh -vT git@*************.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 *************.com from the ~/.ssh/known_hosts file.
    2. Enter push, pull, or ssh -T git@*************.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.