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 user.name
git config --global --get user.email

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 user.name "Your Name"
git config --global user.email "your@email.com"

Change “Your Name” to the username you want to use and “your@email.com” 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
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x