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.

Development Tools Git Basics Getting Started With Git Committing Changes

Piers FC
Piers FC
10,402 Points

I 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
PLUS
William Li
Courses Plus Student 26,865 Points

just 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.

Nick Tolbert
Nick Tolbert
12,003 Points

Thank you, Mr. William Li

Piers FC
Piers FC
10,402 Points

Thanks William,

Will do that now.

that works, i had the same problem!