From the course: Use Git Like a Pro by Pearson

Unlock this course with a free trial

Join today to access over 25,600 courses taught by industry experts.

Create and clone repositories

Create and clone repositories

So let's create our first repository. We already talked about what a repository is. It's just a project with .git folder inside it. This .git folder does all the tracking of changes in your files in your project. In order to start with a repository, you need to initialize git. So you need to do git init in the project. it will create a .git folder inside the project, and Git will start to track your project files. Sometimes you don't want Git to track some of your files, so you can add a file which is .gitignore, and you can add all the files which you don't want to track in that file. Let's see how this looks in practice. So let's start with the project. Let's create a project. let's call it git course. Let's move into the course directory, and I will open it in my Visual Studio Code using the command code dot. If you're not able to do it like this, then you need to go to the Visual Studio Code and type here, install code command in path, shell command. Once you install it, you would…

Contents