Telling Git Who You Are
Your name and email.
Every commit records who made it. So before your first commit, you tell Git your name and your email. You only do this once, on each computer.

- Every commit records an author
- Set your name and email
- Once per computer
git config
We use git config, with dash dash global, which means for every project on this computer. First the user name, in quotes. Then the user email. Git prints nothing, which means it worked. To check, we list the settings, with config dash dash list. There they are, your name and your email.
git config --global user.name "Sam Lee" git config --global user.email "sam@example.com" git config --global --list user.name=Sam Lee user.email=sam@example.com
Good to know
A few tips. Use the same email you'll use on GitHub later, so your commits link to your account. Silence is good news in Git. Many commands print nothing when they succeed. And you can change these settings at any time, by running the same command again.
Summary
git config sets your name and email, once per computer. Next, your very first Git project.
Key takeaways- git config --global user.name
- git config --global user.email
- Silence means success