tencent cloud

Feedback

Manage Repositories Via Local Command Lines

Last updated: 2023-12-25 17:08:18
    This document describes how to use the local command line to manage repositories.

    Open Project

    1. Log in to the CODING Console and click the team domain name to go to CODING.
    2. Click
    
    in the upper-right corner to open the project list page and click a project icon to open the corresponding project.
    3. In the menu on the left, select Code Repositories.
    4. If Code Repositories is not shown on the left, the project admin needs to go to Project Settings > Projects and Members > Functions to enable the relevant function.

    Get Data from Remote Repository

    You can use the git clone command to clone a remote repository to your local device and automatically associate it.
    git clone [remote-name]

    Push Data to Remote Repository

    Use git push [remote-name] [branch-name] to push data from a local repository to a remote repository. For example, git push learn-git master will push data from the local repository to the "master" branch of the remote repository.

    Rename Remote Repository

    Use the git remote rename [old-name] [new-name] command to modify the local nickname of a remote repository. For example, to change the repository name from learn-git to origin, run the following code:
    git remote rename learn-git origin
    After you rename the remote repository, remember to use the new name when you need to specify the repository name in a Git command.

    Disassociate Remote Repository

    git remote rm origin
    Note:
    This command disassociates the remote repository from the local repository, and does not delete the remote repository data. For more information about Git commands, see Common Git Commands.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support