First, create an account on GitHub, because the transfer between the local git repository and the GitHub repository is encrypted via SSH, so a private key and a key are generated locally
command, followed by the mailbox, to be with your own; Add the location of the output; you can press ENTER without setting a password.
lindemac-mini:~ a123$ ssh-keygen-c ' youremail '-t rsalindemac-mini:~ a123$ ssh-keygen-c ' [email protected] '-t RsaGene Rating public/private RSA key pair. Enter file in which to save the key (/USERS/A123/.SSH/ID_RSA):/users/a123/desktop/qy Enter passphrase (empty for no PASSP Hrase): Enter same passphrase Again:your identification has been saved in/users/a123/desktop/qy. Your public key has been saved in/users/a123/desktop/qy. Pub. The key fingerprint is:93:84:b7:37:eb:2f:71:78:02:3c:66:e7:c4:9f:dd:0e [email protected]the key ' s randomart image is:+- -[RSA 2048]----+| | | . | | O. | | o*o+ | | Os*oo O. || o=o= E. | | = O | | |. O. | +-----------------+
You can see it on the desktopTwo files QY is the private key, Qy.pub is the key
Open the Qy.pub file (you can open it with Xcode), copy the contents into the location specified by GitHub, and follow the steps below to add a public key
The name of the title is free to write.
GitHub Quick Start----Create keys, connect