From the course: GitHub Essential Training: 1 The Basics

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Cloning repos with GitHub CLI

Cloning repos with GitHub CLI

- [Instructor] Now, you don't always start with a new project. Many times you're going to have to clone a project, either a project that is being worked on in the office or an open-source project that you want to contribute to. We do that in the GitHub CLI with its clone command. So, how do we do that? With GitHub CLI is pretty cool, pretty simple. We just use gh repo clone. So, right here, I am going to use gh repo clone, and I'm going to clone Vets-Who-Code/vets-who-code-app. Now, I press that. It takes a little time to clone applications. But as you see, I'm having 100 percent across the board. Done, done, done. Now it's receiving those objects from remote. And it is complete. Now I press ls. I have my-simple-portfolio and my vets-who-code-app in here as well. If I were just to cd in the vet-who-code-app, and then run that command that we did earlier about gh repo view, I can see everything in that read-me…

Contents