Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
Once you have Git installed and configured, the next step is to initialize Git in a project, essentially to tell Git to start tracking things in this Git project. And the way we are going to do that is with another Git command, which is git space I-N-I-T, init, short for initialize. So we are going to tell Git to initialize the project to get everything ready to start doing its tracking. Now the first thing we have to decide is where we want to put this project. So what I am going to do is I am going to put it inside my Documents folder--you can put yours absolutely anywhere you want--but inside my Documents folder, I am going to open that up, and I am going to create a new folder, and I am going to call it first_git_project, and this is going to be the folder that I am going to use to track, it's going to be my example folder.
Now, I am also going to wanted to go there from the command line. So if I'm inside my user directory, and then I should be able to change into my Documents directory, and then into that first_git_project directory, so now I am inside that folder, right, I am actually right here, right inside that folder from the command line. So from here, inside the root of my project, this is where I need to do my Git initialize, so git init, and this will tell Git, set up this as your homebase, make this a Git repository, and track all the files that come and go, the changes that are made inside this directory, things outside this directory, it's not concerned about, things in this directory, Git will be aware of, and it doesn't matter how deeply nested they are, Git is going to watch for them.
So you can see it comes up and tells you Initialized empty Git repository in, and then it gives you the full path to get to that directory, and you can see that it also added .git, that's where it's actually going to do all of its storing and tracking. We are going to look at that directory closer in the next movie, but that's it, that's all there it is to telling Git hey Git, this is going to be a directory where you need to do your tracking.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 101628 Viewers
61 Video lessons · 88383 Viewers
71 Video lessons · 72224 Viewers
56 Video lessons · 103971 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.