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 trialakhil maddu
1,422 Pointswhy git need our email address? do we need a github account?
a
1 Answer
Stone Preston
42,016 Pointsa 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
akhil maddu
1,422 Pointsakhil maddu
1,422 Pointsfor every commit we should use this git config --global user.name "" git confgi --global user.email "" commands?
Stone Preston
42,016 PointsStone Preston
42,016 Pointsno 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
11,540 PointsRobert Mews
11,540 PointsHi 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.