Setting your name and email is required for some Git and GitHub features to operate properly. It's also good practice even if you work alone on your laptop.
-
Is your
username
already set up? The following shell command will print your settings for yourusername
:$ git config user.name
If nothing happens, you need to set your username.
-
To set your
username
globally:$ git config --global user.name "Jenn Simmons"
-
Repeat Step 1 to confirm your settings were saved correctly.
-
Is your
email
already set up? The following shell command will print your settings for youremail
:$ git config user.email
If nothing happens, you need to set your username.
-
To set your
email
globally:$ git config --global user.email jenn@example.com
-
Repeat Step 1 to confirm your settings were saved correctly.