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!)
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
.
homebrew
but you can use anything you want). Press “Create Token”.9927d2878ffa105fc5236c762f2fd7zfd28b841d
(not a real token, just an example)IMPORTANT! Remember To Keep The Token Safe As It Works As A “Password” For Your Github Account.
export HOMEBREW_GITHUB_API_TOKEN=9927d2878ffa105fc5236c762f2fd7zfd28b841d
(but use your own API Token, and not the fake example one that don't work) and press enter.cd $HOME
and press enter).ctrl + o
(to save) and then ctrl + x
(to quit Nano)source .bash_profile
(loads the changes in the .bash_profile file to the active session)###Helpful links
Tags: homebrew, brew, github api, token, api token, terminal, mac os x