Start learning with our library of video tutorials taught by experts. Get started
Viewed by members. in countries. members currently watching.
The course shows how to use Git, the popular open-source version control software, to manage changes to source code and text files. Using a step-by-step approach, author Kevin Skoglund presents the commands that enable efficient code management and reveals the fundamental concepts behind version control systems and the Git architecture. Discover how to track changes to files in a repository, review previous edits, and compare versions of a file; create branches to test new ideas without altering the main project; and merge those changes into the project if they work out. The course begins by demonstrating version control in a single-user, standalone context, before exploring how remote repositories allow users to collaborate on projects effectively.
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.
Find answers to the most frequently asked questions about Git Essential Training.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.