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

why git need our email address? do we need a github account?

a

1 Answer

Stone Preston
Stone Preston
42,016 Points

a name and an email address are associated with each commit. It is really just a label and is convenient to see the name and the email of someone who made the commit.

It is not required though, you can simply put a blank for those if you wanted:

git config --global user.name ""
git confgi --global user.email ""

you do not need a github account to use git. github is used to host remote repos, and you can use git without ever pushing up to a remote server.

it is, however, useful to learn how to use git in conjunction with github or similar sites such as bitbucket, and I encourage you to do so

for every commit we should use this git config --global user.name "" git confgi --global user.email "" commands?

Stone Preston
Stone Preston
42,016 Points

no you only have to run that once. those commands set environment variables used by git. you only have to set them once and it will remember them for your user

Robert Mews
Robert Mews
11,540 Points

Hi Stone,

Just an FYI, I still received a fatal error when entering blank values. I entered values and my fatal errors were fixed. No idea why I cannot use blank values.