Git linux git push to code cloud

Source: Internet
Author: User

    • Enter Https://gitee.com/profile to view your account number and email address, put it down in Notepad and use it below.
    • Open git input command git config–global user.name "yourname" carriage return
      git config–global user.email "[Email protected]" Enter

      $ ssh-keygen-t rsa-c "[Email protected]" (please fill in the email address you set) enter

Then appears:
Generating public/private RSA key pair.
Enter file in which to save the key (/USERS/YOUR_USER_DIRECTORY/.SSH/ID_RSA):

Ignore these please continue to press ENTER directly

    • Until it appears
      The key ' s Randomart image is:
      +-[rsa 2048]--+
      | ==++. . |
      | . ++.O. .|
      | .. O++oo |
      +--[sha256]-–+
      Such a
    • After opening the prompt in the directory under Notepad open id_rsa.pub, copy the contents.
    • Go to your account Https://gitee.com/profile/sshkeys click SSH Public key


    • Copy the content pasted into the key, title can not write, pro-test.

Verify: $ ssh-t [email protected] carriage return test

Note: When the key is generated, enter passphrase (empty for no passphrase), this step directly entered enter do not enter the password

Git linux git push to code cloud

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.