3 Ways to Download GitHub Directories and Repositories

Download Article
Easy ways to save a GitHub directory or repository
Download Article

Do you need to download a folder from GitHub? GitHub doesn't give you the option to download a specific folder directly, but you can still easily do so using a third-party tool. GitHub does allow you to download an entire repository through the website, as well as clone a repository to your computer using GitHub Desktop. This How.com.vn teaches you 3 ways to save GitHub folders and repositories to your computer.

Things You Should Know

  • If you want to download a specific folder from GitHub, you can use a third-party tool called Download Directory.
  • You can download a ZIP file of a repository directly from the GitHub website.
  • You can create a local copy of a repository using GitHub Desktop.
Method 1
Method 1 of 3:

Download a Folder

Download Article
  1. How.com.vn English: Step 1 Navigate to GitHub....
    Navigate to GitHub. You can also type https://www.github.com into your browser's address bar.
  2. How.com.vn English: Step 2 Navigate to the repository with the folder you want to download.
    Use the search bar at the top of the page to search for the repository that contains the folder you want to download. When you see the repository in your search results, click it to go to it.
    Advertisement
  3. How.com.vn English: Step 3 Click the folder you want to download.
    All files and folders are listed in the large box in the center of the screen. Folders have an icon that resembles a folder to the left. Click the folder you want to download.
  4. How.com.vn English: Step 4 Copy the folder URL.
    To do so, highlight the URL in the address bar at the top of your web browser. Right-click it (or Control-click on Mac) and click Copy.
  5. How.com.vn English: Step 5 Navigate to https://download-directory.github.io/...
    Navigate to https://download-directory.github.io/ in your web browser. You can either open a new tab or go directly to the website.
  6. How.com.vn English: Step 6 Paste the folder URL and press ↵ Enter.
    Right-click the box at the top-center of the screen and click Paste to paste the URL in the box. Then press Enter. This will download and zip all the files in the folder. Once the website is finished processing, the folder will download automatically as a zip file. You can easily unzip a file by double-clicking it on both Windows and Mac. By default, you can find your downloaded files in your Downloads folder.[1]
  7. Advertisement
Method 2
Method 2 of 3:

Download a Repository (Web)

Download Article
  1. How.com.vn English: Step 1 Navigate to https://www.github.com....
    Navigate to https://www.github.com. Enter the GitHub URL into the address bar of your web browser to navigate to GitHub.com.
  2. How.com.vn English: Step 2 Navigate to the repository you want to download.
    Use the search bar at the top of the page to search for a repository you want to download. Enter the name of the repository you want to download and press Enter. Then click the repository in the list of search results.[3]
  3. How.com.vn English: Step 3 Click the green Code button on the right.
    It's above the list of files and folders for the repository on the right. Click this button to display a drop-down menu.[4]
  4. How.com.vn English: Step 4 Click the Download ZIP button.
    This will download the repository to your computer as a zip file. The zip file will contain all files and folders for the entire repository. You can easily unzip a file by double-clicking it on both Windows and Mac.
    • By default, you can find your downloaded files in your Downloads folder on Mac and PC.
  5. Advertisement
Method 3
Method 3 of 3:

Clone a Repository (GitHub Desktop)

Download Article
  1. How.com.vn English: Step 1 Download and install GitHub Desktop.
    Use the following steps to download and install GitHub Desktop:
    • Navigate to https://desktop.github.com in your web browser.
    • Click Download for Windows (64 Bit). Alternatively, you can click macOS to download the Mac version of GitHub Desktop.
    • Click the GitHubSetup-x64.exe in your Downloads folder.
    • Follow any instructions needed to complete the installation.
  2. How.com.vn English: Step 2 Open GitHub Desktop.
    It has a purple icon with an image that resembles a cat. Click the GitHub Desktop icon in your Windows Start menu or Applications folder to open GitHub Desktop.
  3. How.com.vn English: Step 3 Log in to your GitHub account.
    To do so, click Sign In to Github.com to log in to your personal account. Click Sign in to GitHub Enterprise if you have an enterprise account. Sign in with the email address and password associated with your GitHub account.
    • If you do not have a GitHub account, click "Create your free account' and follow the instructions to create an account.
  4. How.com.vn English: Step 4 Navigate to https://www.github.com....
    Navigate to https://www.github.com. Enter the GitHub URL into the address bar of your web browser to navigate to GitHub.com.
  5. How.com.vn English: Step 5 Navigate to the repository you want to clone.
    Use the search bar at the top of the page to search for a repository you want to clone. Enter the name of the repository you want to download and press Enter. Then click the repository in the list of search results.[5]
  6. How.com.vn English: Step 6 Click the green Code button on the right.
    It's above the list of files and folders for the repository on the right. Click this button to display a drop-down menu.[6]
  7. How.com.vn English: Step 7 Click Open with GitHub Desktop.
    This will display a pop-up alert asking if you want to open GitHub Desktop app.
  8. How.com.vn English: Step 8 Click Open GitHubDesktop.exe.
    This opens the repository in GitHub Desktop.
  9. How.com.vn English: Step 9 Click Clone.
    It's the blue button at the bottom of the dialogue box. This clones the repository to your GitHub folder in your Documents folder. Allow a few minutes for the cloning process to complete.
  10. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!

      References

      1. https://www.gitkraken.com/learn/git/github-download
      2. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 30 September 2021.
      3. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 30 September 2021.
      4. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 30 September 2021.
      5. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 30 September 2021.
      6. Luigi Oppido. Computer & Tech Specialist. Expert Interview. 30 September 2021.

      About This Article

      How.com.vn English: Luigi Oppido
      Co-authored by:
      Computer & Tech Specialist
      This article was co-authored by Luigi Oppido and by How.com.vn staff writer, Travis Boylls. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over two years. This article has been viewed 232,255 times.
      How helpful is this?
      Co-authors: 6
      Updated: February 19, 2024
      Views: 232,255
      Categories: Programming
      Article SummaryX

      1. Go to https://github.com/ in a web browser.
      2. Search for the repository with the folder you want to download and navigate to it.
      3. Click the folder you want to download.
      4. Copy the URL for the folder.
      5. Go to https://download-directory.github.io/ in a web browser.
      6. Paste the URL in the bar and press Enter.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 232,255 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement