github
Add binary distribution to github’s download link
On Dec 11, 2012 “Upload Releases” functionality aka “Downloads” was deprecated. https://github.com/blog/1302-goodbye-uploads Update: On July 2, 2013 GitHub team announced a new “Releases” feature as a replacement for “Downloads” https://github.com/blog/1547-release-your-software
Can I have my GitHub Pages index.html in a subfolder of the repository?
Create a dummy index.html at the root and put this in your header: <meta http-equiv=”refresh” content=”0; url=https://repo.github.io/folder/index.html”> Be sure to change the destination URL. This will instantly redirect from index.html to your folder/index.html.
How to fix bower ECMDERR
In case you might encounter the same issue…It turns out my machine behind firewall, that won’t able to access git://github.com/jquery/jquery.git Link: Unable to Connect to GitHub.com For Cloning The solution without changing the firewall: git config –global url.”https://”.insteadOf git:// Credit to @bnguyen82 from Unable to Connect to GitHub.com For Cloning and @Sindre Sorhus from Bower … Read more
Is there a link to GitHub for downloading a file in the latest release of a repository?
A few years late, but I just implemented a simple redirect to support https://github.com/USER/PROJECT/releases/latest/download/package.zip. That should redirected to the latest tagged package.zip release asset. Hope it’s handy!
Cocoapods with private git repository
If you use SSH and have generated a SSH Key (more info here) $>more ~/.ssh/config It should give you something like that: Host SomeHostNameAlias HostName github.com User YourUserName PreferredAuthentications publickey IdentityFile /Users/YourLocalAccount/.ssh/TheSSHKeyGenerated Then, in your Podfile, you should be able to do something similar to this (I didn’t put :branch =>, but if you need … Read more
github search limit results
The Search API will return up to 1000 results per query (including pagination), as documented here: https://developer.github.com/v3/search/#about-the-search-api However, there’s a neat trick you could use to fetch more than 1000 results when executing a repository search. You could split up your search into segments, by the date when the repositories were created. For example, you … Read more
Download latest GitHub release
You don’t need any scripting to generate a download link for the latest release. Simply use this format: https://github.com/:owner/:repo/zipball/:branch Examples: https://github.com/webix-hub/tracker/zipball/master https://github.com/iDoRecall/selection-menu/zipball/gh-pages If for some reason you want to obtain a link to the latest release download, including its version number, you can obtain that from the get latest release API: GET /repos/:owner/:repo/releases/latest Example: $.get(‘https://api.github.com/repos/idorecall/selection-menu/releases/latest’, … Read more
How to make github follow directory history after renames?
Update June 2022: GitHub now supports viewing commit history across file renames and moves! . 2011: This was requested in 2009 (Request 129), and then in 2010 (Request 897), and then in 2021 (github/feedback discussion 6964): I like this. There could be other issues preventing us from plopping the –follow argument in. I’ll take a … Read more