The local repository is associated with a remote repository and the code is cloned from the remote repository.

Source: Internet
Author: User

1. View All repository configuration information

Git config-l or git config -- lis

If no, add the GIT username email information.

Git config-global user. name "tylerdeng"
Git config-global user. Email "[email protected]"

2. Generate a key

The email address you configured is required.

$ Ssh-keygen-t rsa-c "[email protected]" association? Mailbox number configured in the repository

$ Cat ~ /. Ssh/id_rsa.pub displays the key

3. Add the generated key to the remote Repository

Note that when copying a key, the key will be deleted if there are spaces.

Successful Association: You can use the command to clone the remote repository code to the local repository.

Git clone [email protected]: duo2.0/servers. Git

? In the remote repository? In the struggle

The local repository is associated with a remote repository and the code is cloned from the remote repository.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.