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

30,548 Points

Cannot Commit readme file. "unable to auto-detect email address"

Cannot commit the readme file in this stage. I type "git commit" and then it shoots out all in one go the following:

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 (got 'artie1991@AlexArtlettPC.(none)')
  • I am using windows 8
  • did I stuff up the setting your email part up? (I set my gmail email address to try and get ssh key for the php laravel project.)

what do I need to do to rectify this?

1 Answer

Try adding your email again following these steps https://help.github.com/articles/setting-your-email-in-git