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
From the course: Programming Foundations: Version Control with Git
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
-
-
-
-
Using the command line1m 17s
-
Command line basics4m 15s
-
Configure Git settings3m 11s
-
Setting up a local repository3m 1s
-
Setting up a remote repository3m 43s
-
Adding changes with Git add and commit4m 50s
-
Keep repositories up to date with Git pull and push3m 34s
-
Deleting a repository or branch29s
-
Challenge: Putting it all together1m 31s
-
Solution: Putting it all together5m 39s
-
-
-