It is mostly meant for people who want to develop the source rather than people who just want to get the source one off and not make changes. But it just so happens you can get a ZIP file as well. Install and register keys and whatnot on GitHub, etc.! To simply download a repository as a zip file: add the extra path '/zipball/master/' to. In order to setup your local MyEtherWallet, start off by downloading the latest release of MyEtherWallet here. Click on etherwallet-vX.X.X.X.zip, to download the file. Move this file to a USB stick or something similar, in order to move it to your offline computer.

I see something strange like:

Now I'm not that CVS, SVN, etc. dude. When I open that in the browser it tells me that I did something wrong. So I bet I need some hacker-style tool? Some client?

(I mean... why not just provide a ZIP file? Isn't the world complex enough?)

dontWatchMyProfiledontWatchMyProfile

12 Answers

To clone that repository via a URL like that: yes, you do need a client, and that client is Git. That will let you make changes, your own branches, merge back in sync with other developers, maintain your own source that you can easily keep up to date without downloading the whole thing each time and writing over your own changes etc. A ZIP file won't let you do that.

It is mostly meant for people who want to develop the source rather than people who just want to get the source one off and not make changes.

But it just so happens you can get a ZIP file as well:

Click on http://github.com/zoul/Finch/ and then click on the green Clone or Download button. See here:

KurtKurt

What happens when the repository owner has not prepared a zip file, and you just want a download to use yourself? There is an answer and you don't need to go though that horrid process to download software, install and register keys and whatnot on GitHub, etc.!

To simply download a repository as a zip file: add the extra path '/zipball/master/' to the end of the repository URL and voila, it gives you a zip file of the whole lot.

For example,

becomes:

It then gives you a zip file to download.

user892731user892731

Updated July 2016

As of July 2016, the Download ZIP button has moved under Clone or download to extreme-right of header under the Code tab:

If you don't see the button:

  • Make sure you've selected <> Code tab from right side navigation menu, or
  • Repo may not have a zip prepared. Add /archive/master.zip to the end of the repository URL and to generate a zipfile of the master branch:

http://github.com/user/repository/-to->http://github.com/user/repository/archive/master.zip

to get the master branch source code in a zip file. You can do the same with tags and branch names, by replacing master in the URL above with the name of the branch or tag.

Manav KatariaManav Kataria

To download your repository as zip file via curl:

If your repository is private:

Source: Github Help

WillyWilly

As of December 2016, the Clone or download button is still under the <> Code tab, however it is now to the far right of the header:

BendyBendy

Here's a good reference if you want to do it from the command line:http://linuxprograms.wordpress.com/2010/10/26/checkout-code-from-github/

Basically it's

Paul BaumerPaul Baumer

I've been stumped by this too. The 'Download' button is to the far right, but you also need to be in the top folder in order to download what you're seeing. Go up as high as you can to the parent/root folder and then look for the download button.

clamumclamum

How To Download Off Github On Mac

Even though this is fairly an old question, I have my 2 cents to share.

You can download the repo as tar.gz as well

Like the zipball link pointed by various answers here, There is a tarball link as well which downloads the content of the git repository in tar.gz format.

A better way

Git also provides a different URL pattern where you can simply append the type of file you want to download at the end of url. This way is better if you want to process these urls in a batch or bash script.

Github download one file

To download a specific commit or branch

Replace master with the commit-hash or the branch-name in the above urls like below.

Raja AnbazhaganRaja Anbazhagan

Sometimes if the 'Download ZIP' button is not available, you can click on 'Raw' and the file should download to your system.

Rohan GadadRohan Gadad

As of June 2016, the Download ZIP button is still under the <> Code tab, however it is now inside a button with two options clone or download:

Reginaldo Camargo RibeiroReginaldo Camargo Ribeiro

I was facing same problem but accidentlty I sorted this problem.1) Login in github2) Click on Fork Button at Top Right.3) After above step you can see Clone or download in Green color under <> Code Tab.

Anshul AgarwalAnshul Agarwal

If you have an account then login to GitHub, after that you can see the green button Clone/Download the zip file. Click this button to download the code.

Furthermore, you can download the zip file by appending repo url with '/legacy.zip/master' at the end to download it as a zip file. For Instance, a repo url 'https://codeload.github.com/facebook/php-webdriver' will become 'https://codeload.github.com/facebook/php-webdriver/legacy.zip/master' after appending.

However, If you do not have the GitHub account or want to download a specific branch then you can use the following online tool.

Muhammad Yousaf SulahriaMuhammad Yousaf Sulahria

Not the answer you're looking for? Browse other questions tagged gitgithub or ask your own question.

I need to download the source code of the project Spring data graph example into my box. It has public read-only access. Is there is an extremely fast way of downloading this code?

I have no idea of working on GitHub/committing code and most tutorials out there on the web seems to assume that 'I would want to setup a project in GitHub' and inundate me with 15-20 step processes. To me, if a source repository is available for the public, it should take less than 10 seconds to have that code in my filesystem.

Tutorials that provide me with 15-20 step processes:

I need something very very very simple. Just pull the source code, and I am more interested in seeing the source code and not learn GitHub.

Are there any fast pointers/tutorials? (I have a GitHub account.)

Kannan EkanathKannan Ekanath

8 Answers

When you are on a project page, you can press the 'Download ZIP' button which is located under the 'Clone or Download' drop down:

This allows you to download the most recent version of the code as a zip archive.

Download Github Folder

If you aren't seeing that button, it is likely because you aren't on the main project page. To get there, click on the left-most tab labeled '<> Code'.

jncratonjncraton

You say:

To me if a source repository is available for public it should take less than 10 seconds to have that code in my filesystem.

And of course, if you want to use Git (which GitHub is all about), then what you do to get the code onto your system is called 'cloning the repository'.

It's a single Git invocation on the command line, and it will give you the code just as seen when you browse the repository on the web (when getting a ZIP archive, you will need to unpack it and so on, it's not always directly browsable). For the repository you mention, you would do:

The git:-type URL is the one from the page you linked to. On my system just now, running the above command took 3.2 seconds. Of course, unlike ZIP, the time to clone a repository will increase when the repository's history grows. There are options for that, but let's keep this simple.

I'm just saying: You sound very frustrated when a large part of the problem is your reluctance to actually use Git.

unwindunwind

Updated July 2016

As of July 2016, the Download ZIP button has moved under Clone or download to extreme-right of header under the Code tab:

If you don't see the button:

  • Make sure you've selected <> Code tab from right side navigation menu, or
  • Repo may not have a zip prepared. Add /archive/master.zip to the end of the repository URL and to generate a zipfile of the master branch.

-to-

How To Download Off Github

to get the master branch source code in a zip file. You can do the same with tags and branch names, by replacing master in the URL above with the name of the branch or tag.

Manav KatariaManav Kataria

Downloading with Git using Windows CMD from a GitHub project

  1. Copy the HTTPS clone URL shown in picture 1

  2. Open CMD

  3. git clone //paste the URL show in picture 2

YeHtunZYeHtunZ

Another faster way of downloading a GitHub project would be to use the clone functionality with the --depth argument as:

to perform a shallow clone.

purezenpurezen
Jonathan LJonathan L

There is a new (sometime pre April 2013) option on the site that says 'Clone in Windows'.

This works very nicely if you already have the Windows GitHub Client as mentioned by @Tommy in his answer on this related question (How to download source in ZIP format from GitHub?).

Community
Richard Le MesurierRichard Le Mesurier

I agree with the current answers, I just wanna add little more information, Here's a good functionality

if you want to require just zip file but the owner has not prepared a zip file,

How To Download From Github Browser

To simply download a repository as a zip file: add the extra path /zipball/master/ to the end of the repository URL, This will give you a full ZIP file

For example, here is your repository

How To Download From Github On Raspberry Pi

Add zipball/master/ in your repository link

Paste the URL into your browser and it will give you a zip file to download

Udhav SarvaiyaUdhav Sarvaiya

protected by CommunityApr 16 '15 at 11:10

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged gitgithub or ask your own question.