Git configuration user information

table of Contents

Configure username

Configure mailbox

Precautions


 

The first thing you should do after installing Git is to set the user name and email address. This is important because every Git commit will use this information, and it will be written into every commit.

 

Configure username

Use git config --global user.name "<username>" to add your username to the git configuration. E.g:

git config --global user.name "TCatTime"

 

Configure mailbox

Use git config --global user.email "<email>" to add your own mailbox to the git configuration.

E.g:

git config --global user.email [email protected]

 

Precautions

If the --global option is used, the command only needs to be run once, and Git will permanently record this information.

Guess you like

Origin blog.csdn.net/TCatTime/article/details/108429317