Download single files from GitHub


What are some tips on downloading a single file from a GitHub repo?

I don't want the URL for displaying the raw file; in the case of binaries, there's nothing.

Is it even possible to use GitHub as a "download server"?

If we decide to switch to Google Code, is the mentioned functionality presented there?

Or is there any free-of-charge hosting and VCS for open-source projects?


  1. Go to the file you want to download.
  2. Click it to view the contents within the GitHub UI.
  3. In the top right, right click the Raw button.
  4. Save as...

How do I squash my last N commits together?

master branch and 'origin/master' have diverged, how to 'undiverge' branches'?