- 1.6 First-Time Git Setup
-
Your Identity
The first thing you should do when you install Git is to set your user name and e-mail address. This is important because every Git commit uses this information, and it’s immutably baked into the commits you start creating:
$
git config --global user.name"John Doe"
//An quote is needed,because there is a space between John and Doe.
$
git config --global user.email johndoe@example.com