Skip to content

Latest commit

 

History

History
34 lines (19 loc) · 1.35 KB

File metadata and controls

34 lines (19 loc) · 1.35 KB

Configuring Git

Once you have Git installed on your computer, you have the ability to create and modify repositories locally. You can provide Git with your information so that you can automatically tag your commits with your name and email.

Table of Contents

  1. Prereqs
  2. Configure Your Identity

Prereqs

Configure Your Identity

Run the following command to tell Git what your name is, replacing "Jane Doe" with your own name:

git config --global user.name "Jane Doe"

Check your work by running the following command:

git config --global user.name

Then, run the following command to tell Git what your email is, replacing "jane.doe@example.com" with your own email address:

git config --global user.email "jane.doe@example.com"

Check your work by running the following command:

git config --global user.email

You are not submitting this information to anyone! This is stored locally on your computer, and is used to tag your Git commits with your information. It is very helpful to have this information associated with your work, so that if you do share your work, someone can contact you if there is a problem or if they want to work with you.