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 trial

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,868 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!