First of all, install Homebrew itself.
As the tap is a private Git repo, you need to generate a GitHub token
with repo
scope and then add this token to your ~/.netrc
file like this:
machine github.com
login <your GitHub user>
password <your GitHub token>
Now you can add the tap to your system:
brew tap user/repo
Afterwards, you can finally install tools provided by the tap:
Install the current version of tool XYZ:
brew install XYZ
Install the latest version of tool XYZ:
brew rm XYZ; brew install --HEAD XYZ
@igaskin-gpsw @z00m1n: for installing from releases on private Github repositories, use this syntax in your formula:
Note that you'll have to provide a Github API token with scope
repo
in environment variableHOMEBREW_GITHUB_API_TOKEN
. For example:Ideally you wouldn't provide the token as cleartext on the commandline, but rather through a password manager like pass or gopass.
See https://github.com/Homebrew/brew/pull/1763/files