Using Git under Windows

Source: Internet
Author: User
Tags using git

Set SSH Key
  
   1. Check if SSH Key is already available.
  
$CD ~/.ssh
  
If there is no such directory, you can see the third step directly.
  
   2. Backup
  
   3. Generate a new SSH.
  
$ssh-keygen-t rsa-c "Email"
  
Then go directly to the carriage without filling in anything. You will then be asked to enter your password. A directory is then generated. SSH with two files in it: Id_rsa, id_rsa.pub
  
   4. Put this SSH on GitHub. With the public key. Register a user on GitHub first, then go to account-setting and copy the contents of Id_rsa.pub.
650) this.width=650; "src=" http://s13.sinaimg.cn/mw690/0021httkzy6JOEOlN6Yec&690 "Name=" Image_operate_ 52631403227542668 "alt=" Git settings ssh <wbr>key "title=" Git settings ssh <wbr>key "/>


Then you can copy the contents of the id_rsa.pub.

650) this.width=650; "src=" http://s13.sinaimg.cn/mw690/0021httkzy6JOEQoKNm2c&690 "Name=" Image_operate_ 65041403227544588 "alt=" Git settings ssh <wbr>key "title=" Git settings ssh <wbr>key "/>


   5. Test OK. Enter the command:
  
$SSH-T [email protected]
  
Ubuntu will let you enter the password, after the input is completed, will show the user name on GitHub.
  
Then: Set Git's account information:
  
Enter the command in the terminal:
  
git config--global user.name "username"
  
git config--global user.email "email"
  
The help document says no tokens. You can then start building the library and start using it.



Using Git under Windows

Related Article

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.