Git Configuration Username and email address

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

Right after you install Git, the first thing you should do is set your username and email address. From a shell, type:

git config --global user.name "Mr. Bean"
git config --global user.email [email protected]
  • git config is the command to get or set options
  • --global means that the configuration file specific to your user account will be edited
  • user.name and user.email are the keys for the configuration variables; user is the section of the configuration file. name and email are the names of the variables.
  • "Mr. Bean" and [email protected] are the values that you're storing in the two variables. Note the quotes around "Mr. Bean", which are required because the value you are storing contains a space.


Got any Git Question?