How to Set Up Your Email and Username for Git

Posted by

Step 1: Verifying your existing Git setup

It’s a good idea to verify your current settings to see whether you already have a username and email configured before configuring your Git login and email. Launch Git Bash or your terminal, then type the following command:

git config --global --get
git config --global --get

If you see your username and email displayed, that means you already have a configuration set. If not, proceed to the next step.

Step 2: Setting your Git username and email

To set your Git username and email, you can use the following commands:

git config --global "Your Name"
git config --global ""

Change “Your Name” to the username you want to use and “” to the real email address you use.

Step 3: Checking the settings of Git

Use the following commands to confirm that your Git login and email have been configured correctly:

Verify that the values you entered in the previous step correspond to the output. If it succeeds, congrats! Your email address and Git username have been set up successfully.

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x