We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Quick Config

We need to configure Git to contain your information. Whenever code changes, Git tracks who made the change. To ensure you get proper credit (or more likely, blame) for all the code you write, you need to set your name and email.

Git comes with a configuration both at the global and the repo (project) level. Most of the time, you'll just use the global config.

Assignment

Let's set your identity.

git config get user.name
git config get user.email
git config set --global user.name "github_username_here"
git config set --global user.email "email@example.com"
git config set --global init.defaultBranch master

We're using master for now because it is Git's default, but later we'll change it to main, which is GitHub's default. Just bear with us for a second!

Make Sure It Worked

cat ~/.gitconfig

Run and submit the CLI tests.