Git: Setup Name and Email
Set Up Name and Email Info
You need to setup a default name and email. Else, git won't let you commit.
Everytime you commit, your user name and email is in part of the commit info. This allows git to show who did what, when working in a team. That's why user name and email are required. (you can use random name and email if you want)
Type the following in a terminal.
git config --global user.name "name"
- Set up default name. If name contains space, need to wrap the name in quote.
git config --global user.email "email"
- Set up default email
This creates a file at
You can run these commands again to change. (you can also edit the file directly.)