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
usernamealready 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
usernameglobally:$ git config --global user.name "Jenn Simmons" -
Repeat Step 1 to confirm your settings were saved correctly.
-
Is your
emailalready set up? The following shell command will print your settings for youremail:$ git config user.emailIf nothing happens, you need to set your username.
-
To set your
emailglobally:$ git config --global user.email [email protected] -
Repeat Step 1 to confirm your settings were saved correctly.