From the course: Learning Git and GitHub
Unlock this course with a free trial
Join today to access over 24,300 courses taught by industry experts.
Setting up Git
- [Instructor] Let's take care of setting up a project to use Git. Now, the first step is to set up some of the configuration variables. Git is designed to be used by more than one person. You have to tell it who you are so that it will give you credit for the changes that you make. You can use the git config command and set up the username as well as the user email. If you already have a GitHub account, you may want to use your GitHub email address here so you'll get credit on GitHub as well. The global option makes sure that every project in this computer will use the same name and email address. Right, so I have a terminal open right here, you can use Hyper on a Mac or Git Bash on a PC. And I'm going to start off by adding those configuration variables. So I'll say git config with the global option, and type in user.name, and then I'll type in my name. Next, I'll type in my email address. Once you've configured…
Contents
-
-
-
Understanding version control1m 53s
-
(Locked)
What is Git?2m 16s
-
(Locked)
Setting up Git4m 35s
-
(Locked)
Understanding Git environments5m 51s
-
(Locked)
Ignoring files4m 5s
-
(Locked)
Deleting and renaming files6m 8s
-
(Locked)
Differences4m 9s
-
(Locked)
Changing history12m 7s
-
(Locked)
Branches6m 13s
-
(Locked)
Merge conflicts10m 7s
-
(Locked)
Git stash and clean9m 27s
-
-
-
-
-