How to download file from Github

Github probably the most popular project hosting site in the world. A lot of open source projects are hosted on Github. You may like me often to download open source code from Github. If you are GUI user, then there is no problem to download the source code, but if you are command line user, then you may have a little trouble. Because the download link on Github is not obvious. You can can use wget to download it. Fortunately, there is another handy tool you can use, curl.

You can do the following, it works for both tarball and zipball.

curl -L > jquery-file-upload.tar
curl -L >

If the file is in tar format (tarball), you can even extract the tar file on fly by the following command,

curl -L | tar xz

Leave a Reply

Your email address will not be published. Required fields are marked *