Skip to content

Instantly share code, notes, and snippets.

View lengerfulluse's full-sized avatar
🏠
Working from home

Wei Heng lengerfulluse

🏠
Working from home
View GitHub Profile
@lengerfulluse
lengerfulluse / homebrew-github-api-token.md
Created December 21, 2015 05:38 — forked from christopheranderton/homebrew-github-api-token.md
Set your Github API Token If you hit a ”GitHub API rate limit exceeded” when searching with Homebrew (http://brew.sh/).

Description

When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded

Let's fix that! (yeah!)


Short version

Create a new Personal Token in your Github Account Settings (Sidebar: Applications) and then copy the Token. In the Terminal, use export HOMEBREW_GITHUB_API_TOKEN=YOURAPITOKENWITHFUNKYNUMBERSHERE (change that to your API Token) or add that to your .bash_profile and then do source .bash_profile.