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