Use in git
[~]$ git config --global user.name "lubin"
[~]$ git config --global user.email lubin.z@gmail.com
What is the use of these two commands to set the user name and email address? Do the username and email have to be the same as those on github?
The first question, this link: user information
As for the second question, they don’t necessarily need to be the same. Originally, git and github are not the same thing
This information is actually not very important... = =Okay, it is very important.
This is your self-reported house number. It will be displayed in the GitHub repository who commits each time (I remember correctly!? Well, I don’t really care about this, but you have to pay attention to it when collaborating with multiple people. It may cause permission problems in some places)
In addition, github is just a popular code hosting warehouse. Github is a website that provides warehouses. And git is a version control system, at the same level as SVN. There is a coding.net website similar to github in China.