Skip to main content
Dan Rodney/2 min read

GitHub: Clone (Download) a Remote Repository

Git Hygiene Checklist

0/4
Build Programming Foundations at Noble Desktop

Noble Desktop's Full-Stack Web Development Certificate teaches Git alongside the modern web stack — a must for any developer.

Learn how to contribute to a Git repo that's already been created, clone a Git repo using Visual Studio Code, and give someone access to your private GitHub repo with these easy-to-follow steps.

Contributing to Someone Else’s Repo

When you want to start contributing to a Git repo that has already been created, you can clone it (download a copy) from GitHub. If it’s a private repo, they need to invite you.

Clone a Git Repo

  1. First you’ll need the URL of the Git repo. When viewing the repo on GitHub, click the Code button to see the URL. Copy that URL by clicking the button to its right.
  2. In Visual Studio Code choose File > New Window.
  3. Open the Source Control panel on the left of the window.
  4. In the Source Control panel click Clone Repository.
  5. In the panel that appears at the top the window, paste the URL (or Git clone command) and hit Return (Mac) or Enter (Windows).
  6. You’ll be asked where you want to store the repo.

    Navigate to the folder where you want to store the repo (a new folder for the repo will be created here) and click Select Repository Location.

  7. If you’re asked Would you like to open the cloned repository? (at the bottom right of the vs. Code window) click Open.

Giving Someone Access to Your Private GitHub Repo

If you have a private GitHub repo that you want someone else to contribute to:

  1. On GitHub.com go to the page for your repo.
  2. Click the Settings tab.
  3. In the left sidebar, click Manage access.
  4. Click Invite a collaborator.
  5. Enter the person’s email address and follow any remaining prompts.