Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Piers FC
10,402 PointsI am unable to run 'git commit' on my Run
I am undertaking the Git Basics course and I have installed git for windows on my computer.
However, having created my first repository, following the course along, I am unable to commit to that repository using the git commit command.
When doing so I get the following message:
*** Please tell me who you are.
Run
git config --global user.email "you@example.com" git config --global user.name "Your Name"
to set your account's default identity omit --global to set the identity only in this repository
fatal: unable to auto-detect email address
any ideas what I need to do?
4 Answers
William Li
Courses Plus Student 26,865 Pointsjust run this two lines in terminal
git config --global user.email your@email.com
git config --global user.name "your name"
replace email and name with your own. These two lines basically do some global initial setup of git.

Piers FC
10,402 PointsThanks William,
Will do that now.

Sean Ford
9,581 Pointsthat works, i had the same problem!

Juliette Tworsey
Front End Web Development Techdegree Graduate 32,411 PointsThat helped me as well. Thanks!
Nick Tolbert
12,003 PointsNick Tolbert
12,003 PointsThank you, Mr. William Li