From the course: Programming Foundations: Version Control with Git

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Configure Git settings

Configure Git settings

From the course: Programming Foundations: Version Control with Git

Start my 1-month free trial

Configure Git settings

- [Instructor] After installing Git the first thing we need to do is configure some basic settings. Using GIT means adding a bunch of commits and each commit is associated with the author's identity, a user name and an email address. This information is useful when working with other people. Also if you try to add a commit without configuring the setting you'll get some messaging that will ask you to verify or add a user name and email. To add your author information use the Git config command. Next, add the dash dash global argument to set the configuration globally. Then add user.name or user.email and your details in quotes. This information is just used as a label it wont' trigger any emails to be sent to you. And if you have concerns about privacy you can use any name or email address. Let's go back to the command line and add this setting. We've been changing directories so far so we're no longer in our home directory…

Contents