⊗gtPmStUNS 5 of 65 menu

Setting up a username and email in Git

When several people work on a project, it is convenient to be able to understand who exactly wrote a given piece of code. That is why Git automatically leaves the name of the author of a piece of code and his email for communication.

Therefore, the author's name and email should be set up initially. Let's see what commands are used to do this.

If you want the username to apply to all projects you work with, add the --global option to the command:

git config --global user.name "MyUser" git config --global user.email MyUser@mail.com

If you need to change the user name or email in a specific project, you should go to a specific directory via the terminal and enter the command there without the --global option:

git config user.name "MyUser" git config user.email MyUser@mail.com

Set up your username and email for Git.

enru