When you use https://to submit a private item on GitHub, you need to enter your account number and password every time.
Like my own notebook, I don't want to enter these every time I push.
Then use SSH, which needs to add the notebook's SSH key to the GitHub account.
①ssh-keygen-t rsa-c "[Email protected]"
Enter an e-mail address information in the quotation marks.
②enter file in which to save the key (/HOME/YOU/.SSH/ID_RSA):
This is the save path to select Generate key, which is the default.
③enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase Again:[type passphrase again]
This is the password to enter the local SSH user, if the notebook only if you develop a person, it is recommended not to fill in the password.
④your identification has been saved In/home/you/.ssh/id_rsa.
Your public key has been saved in/home/you/.ssh/id_rsa.pub.
Tells you the build path of the generated local certificate and public key.
⑤ Copy the contents of the id_rsa.pub to the GitHub account's SSH keys.
OK, using SSH to download the project, you can enter the user name and password without each commit.
git generates SSH key