1: First of all, our PC has bound an account, which means that we have ID_RSA.
2: Generates a new public key and names it ID_rsa_2
ssh-keygen -t rsa -f ~/.ssh/id_rsa_2 -C "[email protected]"
Copy the code
3: Modify the Config configuration
4: Enter the specified public key to Github
Id_rsa_2. pub indicates the public key
5: Set the global user name and password
Git config -- global -- unset user. Name git config -- global -- unset user User. email "[email protected]" git config user.name "XXXX"Copy the code
6: Remote repository link
git remote add origin ***
Copy the code