Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialPiers 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,868 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,425 PointsThat helped me as well. Thanks!
Nick Tolbert
12,003 PointsNick Tolbert
12,003 PointsThank you, Mr. William Li