1. View All repository configuration information
Git config-l or git config -- lis
If no, add the GIT username email information.
Git config-global user. name "tylerdeng"
Git config-global user. Email "[email protected]"
2. Generate a key
The email address you configured is required.
$ Ssh-keygen-t rsa-c "[email protected]" association? Mailbox number configured in the repository
$ Cat ~ /. Ssh/id_rsa.pub displays the key
3. Add the generated key to the remote Repository
Note that when copying a key, the key will be deleted if there are spaces.
Successful Association: You can use the command to clone the remote repository code to the local repository.
Git clone [email protected]: duo2.0/servers. Git
? In the remote repository? In the struggle
The local repository is associated with a remote repository and the code is cloned from the remote repository.