Pay attention to the --global parameter of the git config command. Using this parameter means that all Git repositories on your machine will use this configuration. Of course, you can also specify different user names and email addresses for a certain repository.
2. Create SSH Key, log in to GitHub, open the "Account settings", "SSH Keys" page, and add it. Here is the link. Remote warehouse SSH
You should add the id_rsa.pub content to github
This is the public key
But it feels like it’s caused by other reasons
Plan
1. First make sure this step is complete. (user.name user.email remains unchanged, the items in " " need to be changed)
2. Create SSH Key, log in to GitHub, open the "Account settings", "SSH Keys" page, and add it.
Here is the link.
Remote warehouse SSH
3. Still not working, see below.
The above usage format is wrong. It should be in the following format:
or,
Reference
Git tutorial English link