This article was co-authored by Théo Dufort and by wikiHow staff writer, Darlene Antonelli, MA. Théo Dufort is a Software Engineer and Full-Stack Web Developer based in Quebec, Canada. With nearly 6 years of experience, Théo is a full-stack developer specializing in web development. At just 16, he launched his own consulting business to advise on all things web design and development. Most recently he created MyBookQuest, designed to be an all-in-one platform for book lovers to track, organize, and fill their personal library. MyBookQuest aims to fill the gaps of the popular Goodreads app owned by Amazon by rewarding its users with points to give them different perks like discount coupons as an incentive to read, review, and rate their latest book.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 483,197 times.
When you view individual files on GitHub, you'll notice the button to download the code isn't there. You'll instead see the download button on the right side of the page when you navigate to the root of the repository. This wikiHow will teach you how to download files from GitHub by changing to the Raw version of the file.
Steps
-
Go to https://github.com/ in a web browser. You can use any web browser to download files.
-
Navigate to the file you want to download. Use the search bar at the top of the page to find the file you want to download and the results will list repositories that match your search.[1]Advertisement
-
Click Releases (if it's available). You'll see this option on the right side of the browser.[2]
- Once you click Releases, you can click to download the installer or the source code.
- If there is no Releases available, continue following these steps to download a file.
-
Click Go to file. You'll see this above the list of files within this repository next to a button to download all the files.[3]
-
Click to select a file that you want to download. It'll open within GitHub in your web browser.
-
Click Raw. You'll see this next to Blame and a monitor icon above the space where the file displays.[4]
- The page will redirect to display the file contents without any GitHub headers, footers, or menus.
-
Right-click the page and click Save as. Alternatively, you can press the keyboard shortcut Ctrl/CMD + S.
- Your file manager will open so you can select a name and location to save the file.
- If you want to download the entire repository instead, navigate to the root (click the first half of the link, which is usually before any /), click the button with the download icon (it will usually say Code), and click Download ZIP.[5]
Expert Q&A
Video
Tips
Expert Interview
Thanks for reading our article! If you’d like to learn more about using github, check out our in-depth interview with Théo Dufort.
References
- ↑ https://docs.github.com/en/repositories/working-with-files/using-files/downloading-source-code-archives
- ↑ https://docs.github.com/en/repositories/working-with-files/using-files/downloading-source-code-archives
- ↑ https://blog.hubspot.com/website/download-from-github
- ↑ https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file
- ↑ https://sites.northwestern.edu/researchcomputing/resources/downloading-from-github/
About This Article
1. Go to https://github.com/ in a web browser.
2. Navigate to the file you want to download.
3. Click Releases (if it's available).
4. Click Go to file.
5. Click to select a file that you want to download.
6. Click Raw .
7. Right-click the page and click Save as.