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

I typed in the git commit command and got a different message

This is what I got. I am using GitBash on my Windows computer. ... $ git commit

*** 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 (got 'xxx@xxx.(none)')

I feel your pain.

Rodrigo Valladares
Rodrigo Valladares
9,708 Points

I have the same question, do you fix that ?

2 Answers

Oliver Duncan
Oliver Duncan
16,642 Points

This is late, and you probably got it already, but git needs you to set your global username and email before you can commit. Just type in what it says with your username and email, and voila, you'll be able to use git.

I'm not sure if I missed this step in the Git Basics track, however, Git does require you to provide your identity in the global configuration. This is a one-time configuration that is performed when installing Git on your system For anyone with the same problem, run the command in step one and replace the string with your name.

  1. After installing Git, run: git config --global user.name "Your Name"
  2. You can also include your email with: git config --global user.email "Your Email Address"

This should now allow you to perform commits without any errors.