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

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