From the course: Working with LinkedIn Learning Exercise Files on GitHub

Clone the repository to your local computer - GitHub Tutorial

From the course: Working with LinkedIn Learning Exercise Files on GitHub

Clone the repository to your local computer

- [Instructor] Visual Studio Code has a full set of Git and GitHub tools built right into the application. To make sure you're seeing them, go to the View menu and then choose Appearance. Then make sure the Show Activity bar is chosen from the sub-menu. You'll see a series of icons on the left hand side. One of them is the Source Control icon. That's the one we'll need in order to import our GitHub project. You'll see that there are two options. The first is to open an existing folder on your machine and the other is to clone a repository. If this is the first time you're working on a project with a GitHub repo, then you'll be using the Clone Repository button. If you're just coming back to a project, you can use the Open button. We should have a link to the repo in our clipboard from the last video. So I'm going to click on the Clone Repo button and paste the link to my repository. I'm going to hit Return and now I'll create a new folder for this project. I'm just going to put it on the desktop. I'll hit Create and then choose Select Repository Location. Now, it's asking me if I want to open the project or open the project in a new window. I don't have a current project open, so I'll just click on the Open button. This will open up the project inside Visual Studio Code. Now here's a tip, just about anything in Visual Studio Code can be accessed through the command pallete. You can get to it by going to the View menu and then choosing Command Palette. You can also use the keyboard shortcut listed. I'm on a Mac, so that's Command + Shift + P for me. You can type in Git Clone and that command should come up. Using the command palette can save you a lot of time.

Contents