How do you include a link to a compiled binary on Github?
Asked
Active
Viewed 6,236 times
8
-
You track it? `git add whatever.bin && git commit -am "added" && git push` – Jamie Wong Jul 22 '10 at 01:35
-
I'm sorry, I don't think I was clear. I meant how do I include a link to the compiled binary like the link to download the entire source. – David Beck Jul 22 '10 at 06:09
-
Have a look at the new "release" feature from GitHub. See [my answer below](http://stackoverflow.com/a/17440511/6309) – VonC Jul 03 '13 at 05:42
2 Answers
5
You can link to a specific file in a GitHub repo using the URL http://github.com/<username>/<project>/blob/<branch>/<path/to/file>
. So if you track your compiled binary, you can link to it that way.
Otherwise, you can upload the compiled binary to your project's download page, and distribute that URL.

mipadi
- 398,885
- 90
- 523
- 479
-
5The "downloads page" feature has been removed: https://github.com/blog/1302-goodbye-uploads – Aidan Ryan Dec 14 '12 at 21:01
-
2Note that using the `/blob/` path will not give you a path to the binary itself, but to a github web page where the binary can be downloaded _from_ (and for stuff like PDF is rendered inline as well). If you want a direct URL to the binary, use `/raw/` instead of /blob/, i.e., `https://github.com/
/ – JHH Jan 17 '19 at 08:34/raw/ / `.
3
Since 2d July 2013, you now can define a release.
Releases, a workflow for shipping software to end users.
Releases are first-class objects with changelogs and binary assets that present a full project history beyond Git artifacts. They're accessible from a repository's homepage:
- Releases are accompanied by release notes and links to download the software or source code.
- Following the conventions of many Git projects, releases are tied to Git tags. You can use an existing tag, or let releases create the tag when it's published.
- You can also attach binary assets (such as compiled executables, minified scripts, documentation) to a release. Once published, the release details and assets are available to anyone that can view the repository.
That is what replaces the old binary upload service, which was removed in December 2012!